Skip to content

DeepGajera91/9-Naive-Baker-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

9-Naive-Baker

IT314 - Group 9

Mentor: Prof. Saurabh Tiwari

Project: Naive-Baker

This repo contains Naive-Baker Backend code. There are total of 2 repositories.

Development

  • 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

Contribution

-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)