leanminmachine / Sonic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Deploy Sonic?

1) Initializing of database:

- Change api/.env file according to your PSQL specifications.
- Using PSQL command prompt, change directory into sql folder and run "\i init.sql".
- In the case when you have to reset the whole database, simply run "\i init.sql" to clean all the data.

2) Initializing of back-end server:

- Using command prompt, change directory into the api folder and run "npm install".
- Then, to start the server, run "npm start".
- In the case when you want to stop the server, run "npm stop".

3) Initializing of front-end(Customers & Riders):

- Using command prmopt, change directory into any of the 2 frontend folders in the root directory ("frontend-riders" or "customer").
- Run "npm install".
- Then, to start the server, run "npm start".
- In the case when you want to stop the server, interrupt the server using the Ctrl-C command.

4) Initializing of front-end(Staff & Managers):

- Using command prmopt, change directory into any of the 2 frontend folders in the root directory ("frontend-FDS" & "frontend-restaurantStaff").
- Run "npm install".
- Then, to start the server, run "ng serve".
- In the case when you want to stop the server, interrupt the server using the Ctrl-C command.

About


Languages

Language:TypeScript 43.2%Language:HTML 18.9%Language:JavaScript 18.3%Language:TSQL 12.1%Language:PLpgSQL 6.7%Language:CSS 0.8%