This project is built on node.js
using express
,graphQL
and mongoDB
as dependencies.
- Create Project on Mongo Cloud
- Open MongoDB Cloud in your browser.
- Click on
New Project
- Give some name to your project
- Click
Create Project
- Create cluster
Build a Cluster
- Choose a server which is most near to you.
- Create a user for database by navigating to
Database Access
tab in the left panel - Add your IP address by clicking on
Network Access
tab and chooseADD CURRENT IP ADDRESS
- Get URI to connect to your database from
Cluster
>Connect
- Requirements
- Git Install Git.
- Nodejs Install Nodejs.
- Project at MongoDB Cloud.
- Clone the repo.
git clone https://github.com/mkamranhamid/graphql-mongo-starter myproject
cd myproject
npm install
- Start Project
npm start
- Open
localhost:3000/graphql
in your browser