- This repository consists of 2 services namely
web
andserver
. - So, commit code to the corresponding services.
-
Fork the repo to your account.
-
Clone your forked repo to your local machine:
git clone https://github.com/NBNARADHYA/bosch-inter-iit.git (https)
or
git clone [email protected]:NBNARADHYA/bosch-inter-iit.git (ssh)
This will make a copy of the code to your local machine.
- Change directory to
bosch-inter-iit
.
cd bosch-inter-iit
- Check remote version of your local repo by:
git remote -v
It should output the following:
origin https://github.com/<username>/bosch-inter-iit.git (fetch)
origin https://github.com/<username>/bosch-inter-iit.git (push)
or
origin [email protected]:<username>/bosch-inter-iit.git (fetch)
origin [email protected]:<username>/bosch-inter-iit.git (push)
Add upstream to remote:
git remote add upstream https://github.com/NBNARADHYA/bosch-inter-iit.git (https)
or
git remote add upstream [email protected]:NBNARADHYA/bosch-inter-iit.git (ssh)
Running git remote -v
should then print the following:
origin https://github.com/<username>/bosch-inter-iit.git (fetch)
origin https://github.com/<username>/bosch-inter-iit.git (push)
upstream https://github.com/NBNARADHYA/bosch-inter-iit.git (fetch)
upstream https://github.com/NBNARADHYA/bosch-inter-iit.git (push)
or
origin [email protected]:<username>/bosch-inter-iit.git (fetch)
origin [email protected]:<username>/bosch-inter-iit.git (push)
upstream [email protected]:NBNARADHYA/bosch-inter-iit.git (fetch)
upstream [email protected]:NBNARADHYA/bosch-inter-iit.git (push)
- Make sure you are in the root of the project (i.e.,
./bosch-inter-iit/
folder). - Setup environement variables in
.env
files of allservices
androot
according toexample.env
files. - Run
docker-compose up
to spin up the containers. web
would then be available locally athttp://localhost:3000
andserver
athttp://localhost:5000
- The above command could be run in detached mode with
-d
flag asdocker-compose up -d
. - To install new dependencies to
web
, rundocker-compose run web yarn add <pkg_name>
- When updated code is pulled, delete the volume (only if
web
has changed) by runningdocker volume rm bosch-inter-iit_node_modules_web
before runningdocker-compose up --build
. - For help, run the command
docker-compose -h
.