A backend server using graphql, nodejs, express and mongodb Before start, please make sure you have mongodb installed (https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)
- Clone repository
git clone https://github.com/tungduonghgg123/vib-backend
- cd into project directory
cd vib-backend
- Start mongoDB server. If success, you should see the url of the database in the terminal. Then, copy that to
url
field insrc/mongoDB/constants
mongo
3.1. Create database and collection:
node src/mongoDB/create_db.js
node src/mongoDB/create_collection.js
- Start the server
npm start
- If success, copy
http://localhost:4000/graphql
to vib-hackathon reposrc/model/index.js