pnpm install
This will create a docker container.
# Copy the environment file
cp packages/database/.env.example packages/database/.env
# Make the create database script executable
chmod +x scripts/create-database.sh
# Start PostgreSQL in Docker
pnpm db:start
# Generate Prisma Client
cd packages/database
pnpm db:generate
# Push schema to database
pnpm db:push
# Seed the database (optional)
pnpm db:seed
# Return to root
cd ../..
pnpm dev
- Frontend: http://localhost:3000
- Backend: http://localhost:4000
.
├── apps/
│ ├── server/ # Express backend
│ └── web/ # Next.js frontend
├── packages/
│ ├── database/ # Prisma schema and client
│ └── trpc/ # tRPC router and types
└── scripts/
└── create-database.sh # Database setup script