Skip to content

An example node.js GraphQL server that mainly demonstrates basic setup with Koa + Apollo Server + Knex + Basic Authentication(JWT)

Notifications You must be signed in to change notification settings

ifndefdeadmau5/koa-apollo-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-apollo-server-example

An example GraphQL server that mainly demonstrates basic setup with Koa + Apollo Server + Knex + Basic Authentication(JWT)

What's included

  • Babel & Nodemon Setup
  • Modularized Schema
  • DB Configuration
  • Basic Authentication & Authorization Usage
  • Environment Setup(ESLint & Prettier, Dotenv)

Installing / Getting started

# 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

References

Why GraphQL?
Modularize schema
Modularize resolvers
Authentication
Authorization
GraphQL Best practice
How GraphQL turns a query into a response?
Babel, Nodemon setup

About

An example node.js GraphQL server that mainly demonstrates basic setup with Koa + Apollo Server + Knex + Basic Authentication(JWT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published