๐ ๏ธ Development Setup โ
๐ Prerequisites โ
- ๐ข Node.js 22+
- ๐ PostgreSQL 16+
- ๐ Git
๐ฅ Clone & Install โ
bash
git clone https://github.com/kitchenasty/kitchenasty.git
cd kitchenasty
npm ci๐๏ธ Database Setup โ
bash
# Create database
createdb kitchenasty
# Configure connection
cp packages/server/.env.example packages/server/.env
# Edit .env with your PostgreSQL credentials
# Generate Prisma client
npx -w packages/server prisma generate --schema ../../prisma/schema.prisma
# Run migrations
npx -w packages/server prisma migrate dev --schema ../../prisma/schema.prisma
# Seed data
npx tsx prisma/seed.ts๐ Start Dev Servers โ
bash
# Build shared types first
npm run build -w packages/shared
# Start all services (3 terminals)
npm run dev:server # API on :3000
npm run dev:admin # Admin on :5173
npm run dev:storefront # Storefront on :5174๐งฐ Useful Dev Tools โ
๐ Prisma Studio โ
bash
npx -w packages/server prisma studio --schema ../../prisma/schema.prismaOpens a database browser at http://localhost:5555.
๐ Swagger UI โ
API documentation is available at http://localhost:3000/api/docs when the server is running.
๐ฌ Mailhog (Email Testing) โ
bash
docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhogConfigure SMTP_HOST=localhost and SMTP_PORT=1025 to capture emails at http://localhost:8025.
โ๏ธ Editor Setup โ
- ๐ Use TypeScript strict mode (configured in
tsconfig.json) - ๐งฉ Install recommended VS Code extensions: ESLint, Prettier, Prisma
- ๐ The project uses
.tsand.tsxfiles exclusively