A simple boilerplate to create a tentacool service!
A simple boilerplate using graphql to create a service with layers of middlewares and a simple folder structure, this project is for study purposes so feel free to fork and send pull requests to help me improve it.
Kraken have the following features:
- โก Graphql-Yoga โ Fully-featured GraphQL Server based on express and apollo-server
- ๐ก๏ธ Graphql-Middleware โ To create your middlewares in resolvers (with exceptions list of resolvers)
- ๐ฉ Babel โ ES6 syntax
- ๐ฅ Jest โ Jest, for your tests
- โ๏ธ ESlint โ To clean and beautiful code (Airbnb styleguide)
- ๐ณ Docker โ To make your life easier
- Clone this repo using
https://github.com/wendelfreitas/kraken.git
- Go to the newly created directory:
cd kraken
. - Run
yarn
ornpm install
to install dependencies. - Set your
MONGO_URL
in env. - Run
npm start
ordocker-compose up
to see the example app athttp://localhost:4000/playground
.
npm start
- start the playground athttp://localhost:4000/playground
MIT license, Copyright (c) 2019 Wendel Freitas.