Jayden Seric c789b3738b Updated dependencies and configs.
- Updated dependencies.
- Using a Next.js plugin for bundle analysis.
- Updated ESLint config.
- Removed npm from package engines.
- Using cross-fetch in place of isomorphic-unfetch.
2018-04-25 13:19:27 +10:00

26 lines
901 B
Markdown

# Apollo upload example API
An example GraphQL API using:
* [koa](https://npm.im/koa)
* [graphql-server-koa](https://npm.im/graphql-server-koa)
* [apollo-upload-server](https://npm.im/apollo-upload-server)
## Setup
1. Install the latest [Node.js](https://nodejs.org) and [npm](https://npmjs.com).
2. Duplicate `.env.example` as `.env` and configure.
3. Run `npm install` in the `api` directory with Terminal.
4. Run `npm run dev` for development, or `npm run start` for production.
Ensure your editor supports:
* [EditorConfig](http://editorconfig.org).
* [ESLint](http://eslint.org), respecting `package.json` config.
* [Atom](https://atom.io): [`linter-eslint`](https://atom.io/packages/linter-eslint).
* [VS Code](https://code.visualstudio.com): [`vscode-eslint`](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint).
## Support
See `package.json` `engines`.