All Projects → ctco → nodejs-graphql-template

ctco / nodejs-graphql-template

Licence: MIT license
Template project for Node.js® GraphQL APIs

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to nodejs-graphql-template

graphql-compose-elasticsearch
Graphql App using Node with typescript, KOA framework and Elasticsearch
Stars: ✭ 40 (+207.69%)
Mutual labels:  koa, apollo-server, graphql-tools, graphql-playground
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (+1100%)
Mutual labels:  yarn, jest
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+1015.38%)
Mutual labels:  yarn, jest
graphql-typeorm-koa-workshop
Demo GraphQL API server
Stars: ✭ 36 (+176.92%)
Mutual labels:  koa, apollo-server
Generator Rn Toolbox
The React Native Generator to bootstrap your apps
Stars: ✭ 1,155 (+8784.62%)
Mutual labels:  yarn, jest
React Boilerplate
This project is deprecated. Please use CRA instead.
Stars: ✭ 88 (+576.92%)
Mutual labels:  yarn, jest
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+108153.85%)
Mutual labels:  yarn, jest
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+144623.08%)
Mutual labels:  yarn, jest
Blog Service
blog service @nestjs
Stars: ✭ 188 (+1346.15%)
Mutual labels:  koa, jest
koa-mongoDB
😊😊Koa and mongoose build services
Stars: ✭ 24 (+84.62%)
Mutual labels:  koa, yarn
bookshelf
My GraphQL playground
Stars: ✭ 64 (+392.31%)
Mutual labels:  apollo-server, graphql-playground
Tsdx
Zero-config CLI for TypeScript package development
Stars: ✭ 9,010 (+69207.69%)
Mutual labels:  yarn, jest
Yarn Package Boilerplate
An Yarn package with babel, jest, flow, prettier and more
Stars: ✭ 10 (-23.08%)
Mutual labels:  yarn, jest
Democracy Client
DEMOCRACY App Client
Stars: ✭ 98 (+653.85%)
Mutual labels:  yarn, jest
Retro Board
Retrospective Board
Stars: ✭ 622 (+4684.62%)
Mutual labels:  yarn, jest
Quickshare
Quick and simple file sharing between different devices.
Stars: ✭ 190 (+1361.54%)
Mutual labels:  yarn, jest
mock-spy-module-import
JavaScript import/require module testing do's and don'ts with Jest
Stars: ✭ 40 (+207.69%)
Mutual labels:  yarn, jest
Simple React App
Simple base app using react, react-router v4, hot-reload & sass.
Stars: ✭ 263 (+1923.08%)
Mutual labels:  yarn, jest
Vue Koa Demo
🔰A simple full stack demo(CSR & SSR & Docker Support) written by Vue2 & Koa2(Koa1 verson also completed)
Stars: ✭ 730 (+5515.38%)
Mutual labels:  koa, jest
graphql-blog-cms-api
A Blog CMS API powered by GraphQL and Apollo server
Stars: ✭ 23 (+76.92%)
Mutual labels:  apollo-server, graphql-tools

Maintenance PRs Welcome Build Status TravisCI Build Status AppVeyor dependencies Status devDependencies Status

nodejs-graphql-template

Node.js, Koa, GraphQL and TypeScript template project.

Batteries and opinions included 🙌

Features

  • Docker 🐳 configuration for production deployment, development and testing

  • GraphQL tools:

    • GraphiQL
    • GraphQL Voyager
    • GraphQL Playground
    • GraphQL IDL
    • Apollo Tracing
  • Reference GraphQL Models and Connectors architecture implementation

  • CORS middleware

  • 12 Factor Configuration with .env

  • Configurable logging

    • powered by winston
  • Supercharged Development Mode

    • Incremental TypeScript builds
    • Automatic server restart on changes
    • Linting
  • Testing

    • Unit tests
    • Integration tests for GraphQL schema
  • Reporting

    • Test result export to JUnit format
    • Coverage result export to Cobertura format

Required Software

  • node >= 8.1.4 & yarn

or

  • Docker >= 17.05

Install

  • yarn: $ yarn
  • Docker: $ docker-compose up

Develop

  • yarn: $ yarn start
  • Docker: $ docker-compose up --build

Attention Windows users: when Docker for Windows is not an option, install yarn and run $ yarn && yarn docker-mount beforehand.

Generate TypeScript types for GraphQL schema and default GraphQL resolvers

$ yarn gqlgen

Test

single test run

Run unit tests

$ yarn test:unit

Run integration tests

$ yarn test:integration

Run all tests

$ yarn test

Run e2e tests

Run the app or point E2E_TEST_URL to a remote instance you want to test against.

$ yarn test:e2e

Generate coverage reports

Set environment variable CI to true to generate coverage reports.

In *nix:

CI=true yarn test

In Windows:

set CI=true&&yarn test

Build

$ yarn build or $ docker build .

Tech Stack

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].