Awesome
<h1 align="center"> <a href="https://github.com/wendelfreitas/kraken"><img src="https://i.imgur.com/02ZtQpg.png" alt="kraken" width="200"></a> </h1> <p align="center">A simple boilerplate to create a <b>tenta</b>cool service!</p> <p align="center"> <a href="http://makeapullrequest.com"> <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs Welcome"> </a> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="License MIT"> </a> </p> <hr />Introduction
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.
Features
Kraken have the following features:
- :zap: Graphql-Yoga — Fully-featured GraphQL Server based on express and apollo-server
- :shield: Graphql-Middleware — To create your middlewares in resolvers (with exceptions list of resolvers)
- :tophat: Babel — ES6 syntax
- :fire: Jest — Jest, for your tests
- :heavy_check_mark: ESlint — To clean and beautiful code (Airbnb styleguide)
- :whale: Docker — To make your life easier
Getting started
- Clone this repo using
https://github.com/wendelfreitas/kraken.git
- Go to the newly created directory:
cd kraken
.<br /> - Run
yarn
ornpm install
to install dependencies.<br /> - Set your
MONGO_URL
in env.<br /> - Run
npm start
ordocker-compose up
to see the example app athttp://localhost:4000/playground
.
Commands
npm start
- start the playground athttp://localhost:4000/playground
License
MIT license, Copyright (c) 2019 Wendel Freitas.