Skip to content

Rails Web Application from Scratch. SAAS Boilerplate. Feature flag management app

License

Notifications You must be signed in to change notification settings

valarpirai/rails-boilerplate

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

  • Setup

  • System dependencies

  • Configuration

  • Database creation

    • bundle exec rake db:create
  • Database initialization

    • bundle exec rake db:bootstrap
  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

    • rails s - Start server
  • Deployment instructions

  • ...

Websocket Testing

Websocket Basic Auth wscat -c ws://localhost:3001/cable -o http://localhost.myapp-dev.com:3001/ --auth rbx-ae6b7d4949a226e235fa:x

Subscribe to Channel {"command":"subscribe","identifier":"{\"channel\":\"ApplicationCable::FeatureFlagsChannel\"}"}

Production

RAILS_ENV=production rake secret

export SECRET_KEY_BASE=generated_key

RAILS_ENV=production rake assets:precompile

export RAILS_SERVE_STATIC_FILES=true

RAILS_ENV=production rails s -u puma