fast way to prototype full stack apps with Next.js, React, Tailwind, and Drizzle ORM
- Next.js 15
- React 19
- Tailwind CSS
- Drizzle ORM
- Auth.js
- Bun
Before you start, you need to create a .env.local
file in the root of the project and add the following variables:
Turso database connection
NEXT_PUBLIC_TURSO_DATABASE_URL=""
NEXT_PUBLIC_TURSO_AUTH_TOKEN=""
Auth.js config
AUTH_DRIZZLE_URL=""
AUTH_SECRET=""
Google auth config
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""
Google auth is the default auth provider.
Database
To start the database, you need to run the following command:
turso dev
This will start the database in development mode. To more details about turso, you can check the turso documentation.
Database generation and migration
To generate the database schema and run the migration, you need to run the following commands:
Generation
bun run generate
Migration
bun run migrate
The commands are abstraction of drizzle-kit commands, you can check the drizzle-kit documentation for more details.
Server
To start the server:
bun run dev
To run the tests:
bun run test
This commands is configured to run with the correct environment variables file.
Carlos Costa @ 2025