Skip to content

Opinionated backend template powered by rails 5, mongoid and graphql

Notifications You must be signed in to change notification settings

BranLiang/rails-graphql-mongo-boilerplate

Repository files navigation

WIP: Rails Mongoid Graphql

About

Base template for Ruby on Rails projects. Built to minimize the time spent writing boilerplate code and performing repetitive setup tasks. Target for users who love using Graphql and Mongodb.

Client Side JWT implementation

// Header
var header = {
  "alg": "HS256", // algorithm used for the  signature
  "typ": "JWT"    // the type of token
};

// Claims
var claims = {
  "login": "JohnDoe",
  "password": "12345678"
};

// Signature
var payload = base64UrlEncode(header) + "." + base64UrlEncode(claims);
var signature = HMACSHA256(payload, 'my_secret');

// JWT
var myJWT = payload + "." + signature;

Features

  • Auto Robocop Style Check
  • Auto Code Smell check
  • Faster Ruby with fasterer
  • Authorization
  • JWT Authentication
  • Oauth Authentication
  • Test suits / Templates
  • Custom Graphql Generator
  • Setup mongoid
  • Initialize Graphql
  • Query samples
  • Mutation samples
  • Subscription samples
  • I18n integration
  • Gzip
  • Server side rendering
  • React Integration
  • Admin Panel Integration

About

Opinionated backend template powered by rails 5, mongoid and graphql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published