Feedback Backend

The backend of Feedback module is a node project. All the APIs mentioned in the file are written in node.

Project Structure

  • server.js: Server js is the main file which runs whenever any node project runs.

The project is divided into 3 layers:

  • API Layer: It is the first layer called when the API is called.
  • Business Layer: It is the mid layer between api and data. It holds the business logic.
  • Data Layer: It is the layer which is connects with the mongodb.

The apis are also divided into types:

There are generic apis which can be used in the whole project. Other apis are specific apis which are used at specific places.

Run the local

  • Use 'npm start' to run the local.
  • localhost runs on 3000 port.

Mongo Compass

  • MongoDB Compass is a tool to view Mongo Database with tables.
  • Get it installed from IT Team.
  • Use Hostname as 10.10.10.38 and port as 28018.
  • Add UserName and Password as sent in teams and connect.
  • To connect Production Database, connect with Yogesh's VPN.
  • Use the MongoDB Compass to update the database.