This is the backend of the project that I made for safe rohtech challenge. The deployed version of the application is live on heroku --- https://road-rakshak-server.herokuapp.com/.
- Clone the repository
$ git clone https://github.com/krishna9304/road-rakshak-server.git
- Install all the dependencies using command
$ npm install
- Create a
.env
file in the root directory. Copy all the elements from.env.example
and replace the demo value of environment variables from your own values. - Run
$ npm run dev
. - The application should start on port 8080. You can visit the application on
http://localhost:8080
. If it shows a screen that says ---
{
"res": true,
"msg": "Server running"
}
then your server is running correctly.
- Also check the console whether it is connected to the database or not. If it is connected, it will show something like this---
- Node.js
- Express.js
- Mongoose.js
- MongoDB
- Multer for image upload.