Skip to content

๐Ÿ”ง Install Manually โ€‹

For local development or environments where Docker is not available.

1. ๐Ÿ“ฅ Clone & Install Dependencies โ€‹

bash
git clone https://github.com/kitchenasty/kitchenasty.git
cd kitchenasty
npm ci

2. ๐Ÿ—„๏ธ Set Up PostgreSQL โ€‹

Create a database and user:

sql
CREATE USER kitchenasty WITH PASSWORD 'kitchenasty';
CREATE DATABASE kitchenasty OWNER kitchenasty;

3. โš™๏ธ Configure Environment โ€‹

bash
cp packages/server/.env.example packages/server/.env

Edit packages/server/.env:

dotenv
DATABASE_URL=postgresql://kitchenasty:kitchenasty@localhost:5432/kitchenasty
JWT_SECRET=your-random-secret-here
CORS_ORIGINS=http://localhost:5173,http://localhost:5174

4. ๐Ÿ”„ Generate Prisma Client & Migrate โ€‹

bash
npx -w packages/server prisma generate --schema ../../prisma/schema.prisma
npx -w packages/server prisma migrate deploy --schema ../../prisma/schema.prisma

5. ๐ŸŒฑ Seed the Database โ€‹

bash
npx tsx prisma/seed.ts

This creates a default admin user, sample location, categories, menu items, and tables.

6. ๐Ÿ“ฆ Build Shared Package โ€‹

The shared package must be built before the frontends can import its types:

bash
npm run build -w packages/shared

7. ๐Ÿš€ Start Development Servers โ€‹

Open three terminals:

bash
# Terminal 1 โ€” API server
npm run dev:server

# Terminal 2 โ€” Admin dashboard
npm run dev:admin

# Terminal 3 โ€” Storefront
npm run dev:storefront
ServiceURL
API Serverhttp://localhost:3000
Admin Dashboardhttp://localhost:5173
Storefronthttp://localhost:5174

๐Ÿ”‘ Default Credentials โ€‹

RoleEmailPassword
Super Adminadmin@kitchenasty.comadmin123

๐Ÿงฐ Useful Commands โ€‹

bash
# Open Prisma Studio (database GUI)
npx -w packages/server prisma studio --schema ../../prisma/schema.prisma

# Reset database (drops all data)
npx -w packages/server prisma migrate reset --schema ../../prisma/schema.prisma

# Run all tests
npm test