Skip to content

gbrlmrllo/rails_api_boilerplate

Repository files navigation

CI

rails_api_boilerplate is the base Rails api application used for me.

Associated services

Installation

Setup JWT secret for devise.

export JWT_SECRET_KEY="you can use "rails secret" for generate a secret token"

Run application setup

./bin/setup

Gemfile

To see the latest and greatest gems, look at Gemfile

It includes application gems like:

And development gems like:

  • Pry Rails for interactively exploring objects
  • ByeBug for interactively debugging behavior
  • Bullet for help to kill N+1 queries and unused eager loading
  • Spring for fast Rails actions via pre-loading
  • Rubocop rails for enforcing Rails best practices and coding conventions.

And testing gems like:

Github CI

You must add a JWT_SECRET_KEY in the github secrets

Spring

rails_api_boilerplate uses spring by default. It makes Rails applications load faster, but it might introduce confusing issues around stale code not being refreshed. If you think your application is running old code, run spring stop. And if you'd rather not use spring, add DISABLE_SPRING=1 to your login file.

About

A rails api boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published