Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.95 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.95 KB

Road Rakshak Server

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/.

This is one of the three components of the project. Following are all the components of the project

Setting up the development environment

  1. Clone the repository $ git clone https://github.com/krishna9304/road-rakshak-server.git
  2. Install all the dependencies using command $ npm install
  3. 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.
  4. Run $ npm run dev.
  5. 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.

  1. Also check the console whether it is connected to the database or not. If it is connected, it will show something like this--- Screenshot 2021-10-03 at 11 58 24 AM

Features

1. RESTful APIs

2. Flexible schema design

3. Proper management of routes

4. Powerful and secure express server

5. Realtime connection with the android app through sockets.

Technologies Used