This project was created with Better-T-Stack, a modern TypeScript stack that combines Next.js, Self, and more.
- TypeScript - For type safety and improved developer experience
- Next.js - Full-stack React framework
- TailwindCSS - Utility-first CSS for rapid UI development
- shadcn/ui - Reusable UI components
- Drizzle - TypeScript-first ORM
- SQLite/Turso - Database engine
- Biome - Linting and formatting
First, install the dependencies:
bun installThis project uses SQLite with Drizzle ORM.
- Start the local SQLite database (optional):
bun run db:local-
Update your
.envfile in theapps/webdirectory with the appropriate connection details if needed. -
Apply the schema to your database:
bun run db:pushThen, run the development server:
bun run devOpen http://localhost:3001 in your browser to see the fullstack application.
- Format and lint fix:
bun run check
my-better-t-app/
├── apps/
│ └── web/ # Fullstack application (Next.js)
├── packages/
│ ├── api/ # API layer / business logic
bun run dev: Start all applications in development modebun run build: Build all applicationsbun run check-types: Check TypeScript types across all appsbun run db:push: Push schema changes to databasebun run db:studio: Open database studio UIbun run db:local: Start the local SQLite databasebun run check: Run Biome formatting and linting