An example GraphQL server that mainly demonstrates basic setup with Koa + Apollo Server + Knex + Basic Authentication(JWT)
- Babel & Nodemon Setup
- Modularized Schema
- DB Configuration
- Basic Authentication & Authorization Usage
- Environment Setup(ESLint & Prettier, Dotenv)
# install dependencies
npm install
# serve using nodemon with hot reload
NODE_ENV=development npm run watch
# build for production with prettier and babel
npm run build
Why GraphQL?
Modularize schema
Modularize resolvers
Authentication
Authorization
GraphQL Best practice
How GraphQL turns a query into a response?
Babel, Nodemon setup