Simple Next.js starter for using SQLite over HTTP with Turso.
This repository is a starter template for building a Next.js application with Turso and Drizzle ORM.
Clone this repository
Install dependencies:
npm install
Set up your environment variables:
cp .env.example .env
Fill in your Turso database credentials:
TURSO_DATABASE_URL=your_turso_database_urlTURSO_AUTH_TOKEN=your_turso_auth_token
Set up your database:
npm run db:generatenpm run db:push
Start the development server:
npm run dev
This project uses Drizzle ORM for database operations. Here are the available commands:
npm run db:generate
- Generate migration files from schema changesnpm run db:push
- Push schema changes directly to the database (use with caution)npm run db:migrate
- Run migrations against the databasenpm run db:studio
- Open the Drizzle Studio for database managementSimple Next.js starter for using SQLite over HTTP with Turso.
This repository is a starter template for building a Next.js application with Turso and Drizzle ORM.
Clone this repository
Install dependencies:
npm install
Set up your environment variables:
cp .env.example .env
Fill in your Turso database credentials:
TURSO_DATABASE_URL=your_turso_database_urlTURSO_AUTH_TOKEN=your_turso_auth_token
Set up your database:
npm run db:generatenpm run db:push
Start the development server:
npm run dev
This project uses Drizzle ORM for database operations. Here are the available commands:
npm run db:generate
- Generate migration files from schema changesnpm run db:push
- Push schema changes directly to the database (use with caution)npm run db:migrate
- Run migrations against the databasenpm run db:studio
- Open the Drizzle Studio for database management