A tutorial of GraphQL with Node.js & Koa & MongoDB
Checkout this repository:
git clone https://github.com/evershy/graphql.git
Install dependencies and devDependencies:
cd graphql
npm install
The tutorial use Koa, a expressive HTTP middleware framework for node.js, to run a web server; MongoDB to store data; apollo-server-koa to make a graphql server accessible.
- Koa: Expressive middleware for node.js using ES2017 async functions.
- koa-router: Router middleware for koa.
- koa-bodyparser: A body parser for koa.
- graphql: A reference implementation of GraphQL for JavaScript.
- apollo-server-koa: This is the Koa integration of Apollo Server. Apollo Server is a community-maintained open-source Apollo Server that works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify.
- mongoose: Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
- nodemon: Monitor for any changes in your node.js application and automatically restart the server - perfect for development.
MIT