Skip to content

๐Ÿ› ๏ธ 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.prisma

Opens 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/mailhog

Configure 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 .ts and .tsx files exclusively