This repository is a GraphQL wrapper for the API of the Overwatch League
It is made with the serverless framework
- Run
npm install
oryarn install
- Rename
config.sample.js
toconfig.js
and change the configuration (e.g. add a redis server for query caching, etc.) - Run
npm start
oryarn start
to start Serverless Offline onhttp://localhost:4000
There are 2 playgrounds available. You can either use GraphiQL or GraphQL Playground like so:
http://localhost:4000/graphiql
http://localhost:4000/playground
The GraphQL API itself is reachable under:
http://localhost:4000/graphql
Run npm run deploy-dev
or yarn run deploy-dev
for deploying the API to AWS Lambda using serverless.
Same for deploy-prod
.
dev
and prod
are the stages.
Don't forget to setup serverless appropriately.
This project is currently WIP.