Checkout the slides at the link below.
-
Clone this repo and the frontend client.
-
Copy
.env.tempalte
to.env
, and edit the required variables. Make sure the cluster variables have a reachable IP address. -
Start
postgres
docker-compose up postgres
- Start the discovery service.
docker-compose up discovery
- Start as many services as you want (either in same shell, or different shell, as per your convenience).
# for same shell
docker-compose up backend_3030 backend_4040 backend_5050
# for different shells
docker-compose up backend_3030
docker-compose up backend_4040
docker-compose up backend_5050
- Start
nginx
for load-balancing the frontend client with backend. Make surenginx-load-balancer.conf
has the right IP addresses.
docker-compose up nginx
- Visit to the directory where you cloned the frontend, and run the command below. You might need to update
google login client ID
in the frontend code.
npm install
PORT=8080 API_PORT=8000 npm run dev
TODO: Add more text describing how it works.