Skip to content

RentingSystemSE/Renting-System-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renting-System-Backend

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/RentingSystemSE/Renting-System-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 config.env file in config folder 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>
  • Run the server using:
npm install
npm run dev (for development mode)
npm start (for production mode)
  • For production build:
npm build