NOTE: To test different databases there are different schema files and in server.js only one is being used and rest are commented.
- Harcoded Data
- JSON Server
- MySQL DB - Working on it
- Mongo DB - Working on it
- Node should be installed and running
npm init
npm install express express-graphql nodemon graphql --save
node server.js
npm run dev:server
npm install json:server axios --save
npm run json:server
- Express: Cool abstract framework layer that works on top of node.js HTTP Server to keep things neat and easy for us.
- Express-GraphQL: Mainly used for graphiql view that can be launched on web browser.
- Nodemon: Running the server once and then nodemon handles the part of reflecting all the saved changes done in the editor.
- GraphQL: A query language created by Facebook. Great for mobile devices as it reduces the bandwidth with its great to the point data given out implmentation.
- JSON Server: JSON Server quick back-end for prototyping and mocking up and running in seconds.
- Axios: Easy way to call REST methods - GET, POST, PATCH, DELETE and more