| | 2 | |
| | 3 | |
| | 4 | 1. Clone the repo |
| | 5 | - After cloning you should these two folders. |
| | 6 | |
| | 7 | |
| | 8 | 2. Execute the Scripts from Phase 2 in a PostgreSQL DB on the public schema(The Api and Scripts use the public schema) |
| | 9 | 3. Enter the connection string in appsettings.json in the API and your api should be good to go. |
| | 10 | - Please add Include Error Detail=True; at the end od the connection string so the errors we might have are more descriptive on the UI. |
| | 11 | |
| | 12 | 4. Start up the API locally. Swagger should open and the api should be working. |
| | 13 | 5. Next open the UI Folder and Start the UI, execute npm install in the terminal. |
| | 14 | 6. Then find the app-settings.ts file in the UI |
| | 15 | - It should look like this, please change the port to the one shown in the browser of the swagger of the API |
| | 16 | |
| | 17 | 7. Execute npm start in the terminal and the UI will be started. |
| | 18 | 8. Both API and UI should be started and the project should be working. |
| | 19 | |
| | 20 | |
| | 21 | 9. The initial mode of the app would be Delivery person mode. |
| | 22 | |
| | 23 | - We can change that by inserting a Manager or Storekeeper OTP in the modal. |
| | 24 | - Manager code -> MNG123 |
| | 25 | - Storekeeper code -> STR321 |