๐ง 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 ci2. ๐๏ธ 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/.envEdit 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:51744. ๐ 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.prisma5. ๐ฑ Seed the Database โ
bash
npx tsx prisma/seed.tsThis 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/shared7. ๐ 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| Service | URL |
|---|---|
| API Server | http://localhost:3000 |
| Admin Dashboard | http://localhost:5173 |
| Storefront | http://localhost:5174 |
๐ Default Credentials โ
| Role | Password | |
|---|---|---|
| Super Admin | admin@kitchenasty.com | admin123 |
๐งฐ 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