An open API service indexing awesome lists of open source software.

https://github.com/radenkovic/koa-apollo-graphql

Minimal boilerplate to run Apollo GraphQL server on Koa 🔥
https://github.com/radenkovic/koa-apollo-graphql

apollo-server apollo-server-koa babel es6 graphql graphql-server koa koa2

Last synced: about 2 months ago
JSON representation

Minimal boilerplate to run Apollo GraphQL server on Koa 🔥

Awesome Lists containing this project

README

          

# Apollo GraphQL + Koa Boilerplate

Utterly minimal and nice starter / boilerplate for Apollo GraphQL server that
runs on Koa.

[![Build Status](https://travis-ci.org/radenkovic/koa-apollo-graphql.svg?branch=master)](https://travis-ci.org/radenkovic/koa-apollo-graphql)
[![dependencies Status](https://david-dm.org/radenkovic/koa-apollo-graphql/status.svg)](https://david-dm.org/radenkovic/koa-apollo-graphql)

![Apollo GraphQL, Koa Server](https://i.imgur.com/kWj1qHm.png)

Includes:

- Koa 2 ✨
- Apollo GraphQL Server (with GraphiQL)
- GraphQL Tools
- ES6 Out of the box (Babel) 🤘
- Nice Linter
- Travis Builds
- Out-of-the-box working example 💥

## Installation

1. `git clone https://github.com/radenkovic/koa-apollo-graphql graphql-server`
2. `cd graphql-server`
3. `yarn`

## Scripts

1. `yarn run dev` -- spins a dev server, you need [nodemon](https://github.com/remy/nodemon) installed globally (`npm i -g nodemon`)
2. `yarn run build` -- compiles ES6 code in `/dist` folder
3. `yarn start` -- starts production server from `/dist` folder
4. `yarn run lint` -- lints src files and tries to fix them