Skip to content

abhidot/bosch-inter-iit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bosch Inter IIT

Contributing Guidelines

  1. This repository consists of 2 services namely web and server.
  2. So, commit code to the corresponding services.

Setting up the repository locally

  1. Fork the repo to your account.

  2. 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.

  1. Change directory to bosch-inter-iit.
cd bosch-inter-iit
  1. 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)

Dev Setup

Pre-requisites

  1. Install Docker by looking up the docs
  2. Install Docker Compose by looking up the docs

Steps

  1. Make sure you are in the root of the project (i.e., ./bosch-inter-iit/ folder).
  2. Setup environement variables in .env files of all services and root according to example.env files.
  3. Run docker-compose up to spin up the containers.
  4. web would then be available locally at http://localhost:3000 and server at http://localhost:5000
  5. The above command could be run in detached mode with -d flag as docker-compose up -d.
  6. To install new dependencies to web, run docker-compose run web yarn add <pkg_name>
  7. When updated code is pulled, delete the volume (only if web has changed) by running docker volume rm bosch-inter-iit_node_modules_web before running docker-compose up --build.
  8. For help, run the command docker-compose -h.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published