This repo contains the Node.js backend server code which by default runs locally on the port 5000.
https://webevaluator.onrender.com/api/status
Your machine should have Npm(or Yarn), Node.js and MongoDb installed to use it locally.
-
Fork the repo to your account.
-
Clone your forked repo to your local machine: Replace
<YOUR_GITHUB_USERNAME>
with your actual GitHub username in the below command. This will clone the code to your local machine.
git clone https://github.com/<YOUR_GITHUB_USERNAME>/nodebackend.git (https)
or
git clone [email protected]:<YOUR_GITHUB_USERNAME>/nodebackend.git (ssh)
- Change directory to
nodebackend
.
cd nodebackend
- Check the remote of your local repo by:
git remote -v
It should output the following:
origin https://github.com/<YOUR_GITHUB_USERNAME>/nodebackend.git (fetch)
origin https://github.com/<YOUR_GITHUB_USERNAME>/nodebackend.git (push)
or
origin [email protected]:<YOUR_GITHUB_USERNAME>/nodebackend.git (fetch)
origin [email protected]:<YOUR_GITHUB_USERNAME>/nodebackend.git (push)
- Add remote upstream by running the below command:
git remote add upstream https://github.com/webevaluator/nodebackend.git (https)
or
git remote add upstream [email protected]:webevaluator/nodebackend.git (ssh)
- Running
git remote -v
should then print the following:
origin https://github.com/<username>/nodebackend.git (fetch)
origin https://github.com/<username>/nodebackend.git (push)
upstream https://github.com/webevaluator/nodebackend.git (fetch)
upstream https://github.com/webevaluator/nodebackend.git (push)
or
origin [email protected]:<username>/nodebackend.git (fetch)
origin [email protected]:<username>/nodebackend.git (push)
upstream [email protected]:webevaluator/nodebackend.git (fetch)
upstream [email protected]:webevaluator/nodebackend.git (push)
- For installing dependencies run
npm install
- For starting the server run:
npm run dev