This a sample pizzeria management system made with Node (ExpressJs + TypeScript) and Angular 2 (with CoreUI).
- User authentication
- Clients CRUD
- Products CRUD
- Orders CRUD
- Create database schema running the file
backend/database.sql
cd backend
npm install
npm install -g gulp
npm run build
npm start
npm run watch
for watch source changes
Runs on localhost:3000
cd frontend
npm install
npm install -g @angular/cli
npm start
Runs on localhost:4200
Default system user/password: admin1/senha
name:string,
cpf:number,
phone1:number,
phone2:number,
address:{
place:string,
city:string,
zipCode:number,
number:number,
neighborhood:string,
info:string
}
{
id: number,
name: string,
price: number
}
{
id: number,
date: string,
status: string,
client: Client,
products: {
product: Product,
amount: number
}[]
}
Response body:
Client[]
Response body:
Client
Request body:
Client
Response body:
Product[]
Response body:
Product
Request body:
Product
Response body:
Order[]
Response body:
Order
Request body:
{
id: number,
date: string,
status: string,
client: number[],
products: {
id: number,
amount: number
}[]
}