Setting up an apollo-express-server using graphql and mongoDB for the database
Installing mongoDB packages using homebrew:
- brew install mongodb-community
- reference: https://youtu.be/4crXgQZG4W8
Adding babel-CLI and nodemon:
- yarn add -D @babel/preset-env @babel/cli @babel/node @babel/core nodemon
- change "test" in package.json with "start": "nodemon --exec babel-node index.js"
Adding apollo-server-express and graphql:
- yarn add apollo-server-express express graphql
Adding mongoose package
- yarn add mongoose