Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.2 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.2 KB

InterviewDream-backend

Graphql apis for interviewDream project. This project is build using node and express framework. Graphql and Apollo Server is used for creating apis.

Database

Project fetch data from Mongodb cloud server. All the CRUD operations are performed using Mongoose ODM.

Setting up Mongodb cloud for nodemon

Database can be connected by setting up mongodb locally or using Mongodb cloud

  1. Create a nodemon.json file in root folder.
  2. Add below code
{
  "env": {
    "PORT": YOUR_PREFERRED_PORT_VALUE,
    "MONGO_ATLAS_URI": YOUR_MONGOATLAS_URI
    } 
}
  1. Update YOUR_PREFERRED_PORT_VALUE and YOUR_MONGOATLAS_URI
  2. script start:dev

Runnning dev server

Development server can be run using start:dev command in cli. Please make sure you have setup nodemon.json file locally.

Deployment

InterviewDream backend is automatically deployed from Heroku platform when a PR is created to master branch. Project gets deployed to https://interviewdream-backend.herokuapp.com/

TODO

  1. Mapped object id need to be deleted on deleting questions, papers, courses.