wendelfreitas / kraken

Simple boilerplate to create a service with mongodb and graphql :octopus:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kraken

A simple boilerplate to create a tentacool service!

PRs Welcome License MIT


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:

  • ⚑ 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

Getting started

  1. Clone this repo using https://github.com/wendelfreitas/kraken.git
  2. Go to the newly created directory: cd kraken.
  3. Run yarn or npm install to install dependencies.
  4. Set your MONGO_URL in env.
  5. Run npm start or docker-compose up to see the example app at http://localhost:4000/playground.

Commands

  • npm start - start the playground at http://localhost:4000/playground

License

MIT license, Copyright (c) 2019 Wendel Freitas.

About

Simple boilerplate to create a service with mongodb and graphql :octopus:


Languages

Language:JavaScript 99.0%Language:Dockerfile 1.0%