Project for "Zarządzanie Projektami" class - table reservation system in a restaurant
To create virtual enviroment:
- cd .\backend\
- python -m venv venv
To run App:
- cd .\backend\
- venv\Scripts\activate
- pip install -r .\requirements.txt
- set FLASK_DEBUG=1 - to active auto reload the backend after savind the project
- flask run
To run first time:
- download node.js: https://nodejs.org/en/download/prebuilt-installer
- Run this commands in cmd:
- cd .\frontend\
- npm install -g @angular/cli
- npm install
Do the following to run frontend:
- run second terminal
- cd .\frontend\
- npm install
- ng serve
- To use a mock, you need to replace backApiUrl with mockApiUrl in frontend services and run json-server --watch mocks/db.json --routes mocks/routes.json --middlewares mocks/login.js in the second console
- To install openapi to Angular:npx openapi-generator-cli generate -i ./apispecification/auth.yaml -g typescript-angular -o frontend/src/app/core/modules/auth npm install @openapitools/openapi-generator-cli -g
- To generate example api to ts: