Graphql apis for interviewDream project. This project is build using node and express framework. Graphql and Apollo Server is used for creating apis.
Project fetch data from Mongodb cloud server. All the CRUD operations are performed using Mongoose ODM.
Database can be connected by setting up mongodb locally or using Mongodb cloud
- Create a
nodemon.json
file in root folder. - Add below code
{
"env": {
"PORT": YOUR_PREFERRED_PORT_VALUE,
"MONGO_ATLAS_URI": YOUR_MONGOATLAS_URI
}
}
- Update
YOUR_PREFERRED_PORT_VALUE
andYOUR_MONGOATLAS_URI
- script
start:dev
Development server can be run using start:dev
command in cli. Please make sure you have setup nodemon.json file locally.
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/
- Mapped object id need to be deleted on deleting questions, papers, courses.