This repo contains Naive-Baker Backend code. There are total of 2 repositories.
- Frontend Repository : https://github.com/Jitu-U/9-Naive-Baker/
- Backend Repository (This repo): https://github.com/DeepGajera91/9-Naive-Baker-Backend/
- Fork and Clone the local repository.
git clone <your-url>
- Add your local repository as origin
git remote add origin <your-url>
- Add this repository as upstream
git remote add upstream https://github.com/DeepGajera91/9-Naive-Baker-Backend.git
- To sync your local repository with central repository
git pull upstream main
-
You need Node & Yarn to start the development environment. Download them here - Node, Yarn.
-
You can setup a
.env
file in the root of the repository. The file should look like this:
PORT=<PORT number>
MONGO_URI=<ADD YOUR MONGODB CLUSTER URI>
TOKEN_SECRET=<ADD YOUR JWT SECRET KEY>
NODE_ENV=<Development Environment>
- Run the development server using:
npm install
npm start
- For production build:
npm build
-Create new branch and name it on the issue/feature you are working.
- to create new branch
git checkout -b <branch-name>
- to shift from one branch to another
git cheackout <branch-name>
- After completing create PR on that branch
git push origin <branch-name>
- Then from your local repo you can create pull request to upsream(central repository)