A T3 stack template for Onlook projects with TypeScript, Next.js, tRPC, Tailwind CSS, and Drizzle ORM.
- Framework: Next.js with App Router
- Language: TypeScript
- Database: SQLite with Drizzle ORM
- API: tRPC
- Styling: Tailwind CSS
- Package Manager: Bun
-
Install dependencies:
bun install
-
Set up the database:
bun run db:push
-
Start the development server:
bun run dev
bun run dev- Start development server with Turbopackbun run build- Build for productionbun run start- Start production serverbun run preview- Build and preview production buildbun run typecheck- Run TypeScript type checkingbun run lint- Run ESLintbun run format- Format code with ESLintbun run db:push- Push schema changes to databasebun run db:generate- Generate database migrationsbun run db:migrate- Run database migrationsbun run db:studio- Open Drizzle Studio
Copy .env.example to .env and fill in the required values:
cp .env.example .envTo learn more about the T3 Stack, take a look at the following resources:
Apache-2.0