- Ruby 2.7.1
- PostgreSQL
- NodeJS 12.13.x
- Yarn 1.12.x
- Run
bundle installto install the gem dependencies - Run
yarnto install node dependencies - Run
bin/rails db:setupto set up the database development and test schemas, and seed with test data - Run
bundle exec rails serverto launch the app on http://localhost:3000 - Run
./bin/webpack-dev-serverin a separate shell for faster compilation of assets
- Rails 6.0 with Webpacker
- GOV.UK Frontend
- RSpec
- Dotenv (managing environment variables)
- Travis with Heroku deployment
bundle exec rake
bundle exec rspec
It's best to lint just your app directories and not those belonging to the framework, e.g.
bundle exec rubocop app config db lib spec Gemfile --format clang -a
or
bundle exec scss-lint app/webpacker/styles- Your department, agency or team has a GOV.UK PaaS account
- You have a personal account granted by your organisation manager
- You have downloaded and installed the Cloud Foundry CLI for your platform
- Run
cf login -a api.london.cloud.service.gov.uk -u USERNAME,USERNAMEis your personal GOV.UK PaaS account email address - Run
bundle package --allto vendor ruby dependencies - Run
yarnto vendor node dependencies - Run
bundle exec rails webpacker:compileto compile assets - Run
cf pushto push the app to Cloud Foundry Application Runtime
Check the file manifest.yml for customisation of name (you may need to change it as there could be a conflict on that name), buildpacks and eventual services (PostgreSQL needs to be set up).
The app should be available at https://govuk-rails-boilerplate.london.cloudapps.digital