Next.js Turso Starter

Next.js Turso Starter

Simple Next.js starter for using SQLite over HTTP with Turso.

0

boilerplate.detail.metadata.lastUpdated

il y a 2 mois

R

boilerplate.detail.metadata.author

Renaud

boilerplate.detail.metadata.price

boilerplate.detail.metadata.free

npx boilerapp turso-starter

Documentation

Next.js Turso Starter

This repository is a starter template for building a Next.js application with Turso and Drizzle ORM.

<img width="1200" alt="Next.js Starter" src="https://github.com/user-attachments/assets/b78fd54e-574b-43b9-8f8f-943d14722e64" />

Deploy with Vercel

Stack

  • Next.js 15
  • App Router
  • Server Actions
  • Drizzle ORM
  • Turso Database
  • Todo CRUD
  • TypeScript
  • Tailwind CSS

Local Development

  1. Clone this repository

  2. Install dependencies:

    npm install
    
  3. Set up your environment variables:

    cp .env.example .env
    

    Fill in your Turso database credentials:

    TURSO_DATABASE_URL=your_turso_database_url
    TURSO_AUTH_TOKEN=your_turso_auth_token
    
  4. Set up your database:

    npm run db:generate
    npm run db:push
    
  5. Start the development server:

    npm run dev
    

Database Management

This project uses Drizzle ORM for database operations. Here are the available commands:

  • npm run db:generate - Generate migration files from schema changes
  • npm run db:push - Push schema changes directly to the database (use with caution)
  • npm run db:migrate - Run migrations against the database
  • npm run db:studio - Open the Drizzle Studio for database management

Need Help?

  1. Open an issue on GitHub
  2. Submit a Pull Request to improve this starter
  3. Join us on Discord

boilerplate.detail.sections.discussion

Comments (0)

FAQ

Frequently Asked Questions

Have a question? We have the answers. If you can't find what you're looking for, feel free to contact us.

Boilerapp is a community platform dedicated to sharing boilerplates, starter kits, and project templates for developers. Our goal is simple: save you time on initial setup so you can code what really matters. Whether you are looking for a simple code base or a complete SaaS project, you will find it here.

Have more questions?

Our team is here to help. Contact us and we will get back to you as soon as possible.