Default Rails API application

Boot up new rails application with configured test environment and all necessary gems. Default configs are:

  • PostgreSQL
  • no minitets
  • rspec
  • pure js - not coffee
  • sidekiq as background processing adapter
  • redis
  • test environment is set
  • rspec_api_documentation for testing and docs generation
  • rack-cors configured
  • blueprinter_serializer
  • devise-jwt
  1. Copy setup_rails_prototype.sh into folder where you want to create your_rails_app folder
  2. Specify rails version and your app name!

Ruby version must be preinstalled and selected must be preinstalled!

Options:
    -r         # Rails VERSION
    -t         # Application type: [api classic]
    -n         # Application name

Script options:
    -h         # Show this help message and quit
    -v         # Show script version number and quit"
sh setup_rails_prototype.sh -r 5.2.2 -t api -n my_awesome_app