- 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.envfile inconfigfolder 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