Skip to content
/ hybrid Public template

Graphql / REST Hybrid API Boilerplate { MongoDB, Apollo, Express, JWT, Dockerized, CI / Documentation / Test Ready }

Notifications You must be signed in to change notification settings

stevenselcuk/hybrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theOnion

hybridAPI Boilerplate (NodeJS w/GraphQL & Express)

Starting point for your next awesome API Hybrid gives you the best of both worlds REST and GraphQL with awesome stack. Just keep reading this readme file to discovering it.


Build Status Codacy Badge Maintainability

Are you interested? 👀 Live Demo : https://hybridapi.herokuapp.com/

REST API Documentation: https://hybridapi.herokuapp.com/api-docs/ (Swagger UI)

JS Documentation: https://hybridapi.herokuapp.com/docs (JSDoc)

🔥Features

🏭Development (w/ Reloading)

  • Webpack (with Babel & Eslint Loader)
  • Nodemon
  • Winston for logging (console and log file)

🏢Building

  • Webpack & Babel

📲Deploy

  • Dockerized
  • PM2
  • Heroku ready

🧪Testing

  • Mocha & Chai (with auth & user tests)
  • Coverage ready with NYC
  • Codecov ready

🚐CI

  • Travis

📚Documentation

  • Swagger UI & server
  • JSDoc (a classic)
  • Postman ( I ❤️it)

🛠Tools

  • Seeding

Tech

  • Eslint
  • Prettier
  • Babel 7
  • Webpack
  • Apollo Server
  • Express
  • MongoDB with Mongoose
  • Redis Cache (on both of REST & GrapQL)
  • Multer
  • Passport
  • Jwt

Start to Developing

// Clone it
git clone https://github.com/stevenselcuk/hybrid.git

// enter folder
cd hybrid

// Install deps
yarn

// Seed admin account and other demo material
yarn seed

// For using Nodemon
yarn dev

// or using Webpack
yarn dev:webpack

// That's all

Build

Build with Webpack

yarn build

or building with Babel

yarn build:babel

Testing

yarn test

Deploy

Releases

No releases published

Packages

No packages published

Languages