Every time you start working on the project:
bun setup- Installs dependencies, runs migrations, and seeds databasebun dev- Runs the project in dev environment
Before pushing commits:
bun lint- Runs linter, fix lint errors before pushing.bun run buildCompiles and Builds the project, fix build errors before pushing.
Prerequisites:
- Docker Desktop - Install and start Docker Desktop
- Bun - JavaScript runtime and package manager
- ESLint and Prettier VS Code extensions
Initial Setup:
- Install and start Docker Desktop
- Run
./start-database.shto start the database - Run
bun setupto install dependencies, run migrations, and seed the database
bun db:studio- Open Prisma Studio to visually browse the databasebun db:seed- Reseed database with sample data (safe to run multiple times)bun db:migrate- Run database migrationsbun db:generate- Generate Prisma client after schema changes
Recommended:
- ES7+ React/Redux/React-Native snippets - React code snippets
- Tailwind CSS IntelliSense - Tailwind autocomplete
- Prisma - Prisma schema support
This project uses the T3 Stack with:
- Next.js - React framework
- Prisma - Database ORM
- Tailwind CSS - Styling
- tRPC - Type-safe APIs
- NextAuth.js - Authentication
Learn more: T3 Stack Documentation | T3 Discord