This project is a monorepo for a Point of Sale (POS) system, built with Next.js and TurboRepo.
- apps/
menu(Port 3000)providers(Port 3001 - Est.)inventory(Port 3002 - Est.)salescreditpayroll
- packages/
@repo/database: Shared database configuration (Supabase)tsconfig: Shared TypeScript configuration
- Node.js
- npm (verified with v11.6.2)
npm installTo start all microservices in parallel:
# Windows Command Prompt
cmd /c "npm run dev"
# Or if you have fixed execution policy:
npm run devThe terminal output will show you the URL for each app (e.g., localhost:3001).
Each microservice has its own frontend:
- Providers App: Manage suppliers. URL usually
http://localhost:3001 - Inventory App: Manage products/stock. URL usually
http://localhost:3002
You can consume the data via HTTP requests (REST API):
Providers API
GET /api/providers- Get all providersPOST /api/providers- Create providerDELETE /api/providers/:id- Delete provider
Inventory API
GET /api/products- Get all productsPOST /api/products- Create productDELETE /api/products/:id- Delete product
See previous section for PowerShell errors.