- Install
docker
anddocker-compose
. - Install
yarn
- Install Postman (Optional, but useful for querying)
- Use a *nix OS - if not, Docker might not be able to map the process to
localhost
. A workaround is to rundocker-machine ip default
to get the IP where docker processes are mapped to, and replacelocalhost
in thedocker-compose.yaml
file in the root folder of this directory.
- Download the queries here for Postman. Import the queries into Postman, and in the imported folder, click on Edit, and go to the Variables tab. Key in the initial value and current value of BASE_API_URL to be
localhost:3000
. (If using Windows, you have to change to<docker ip>:3000
instead) git clone
this repositorycd
into this folder- Run
./install.sh
to install the dependencies for both the backend and the frontend. docker-compose up
(withsudo
if necessary) to run the containers- When all the services have started, the last message should show something like
Server running at http://localhost:1234
, which is the URL of the frontend. - If this is the first time running the docker containers, do a
GET http://localhost:3000/seed
request to seed the initial database while the containers are running. The seeding of the database is complete when the console showsSeeding complete!
. An account for each user type will also be logged in the console for easy access. - There are 4 user types: Manager, Rider, Customer, and Restaurant. All of them log in using a username and password. To log in to any one of these accounts, follow the instructions below.
- Stopping the process is as simple as inputting
Ctrl+C
in the console that is running the docker services.
There is an account for each user type that has a fixed username and password. All passwords are password
. These should be logged in the console when the database is seeded.
Manager: adam0
Customer: bob10
Delivery Rider: carol510
Restaurant: david610