Skip to content

Latest commit

 

History

History
executable file
·
45 lines (39 loc) · 782 Bytes

README.md

File metadata and controls

executable file
·
45 lines (39 loc) · 782 Bytes

To run this app:

Install

nvm (Node Version Manager)

nvm

run-rs

run-rs

npm install run-rs -g

mongo-express

mongo-express

npm install -g mongo-express

Download npm dependencies

At the project root folder run

npm install

Run

Start mongodb with replica sets

run-rs

Populate DB

node populate_db.js

Start node app

node app.js

To test the GraphQL queries through GraphiQL access to localhost:3000/graphql

Extras

To interact with mongodb you can use mongo-express

mongo-express -U "mongodb://localhost:27017,localhost:27018,localhost:27019/example?replicaSet=rs"