Skip to content
Back to Templates

Next.js Turso Starter

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

Contentful thumbnail for Next.js Turso Starter

Next.js Turso Starter

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

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:

  3. Set up your environment variables:

    Fill in your Turso database credentials:

  4. Set up your database:

  5. Start the development server:

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