The HMCTS Form Finder Back Office app to maintain forms and leaflets.
AWS S3 the default document storage mechanism. It is stubbed out using webmock for all tests, but active in development mode.
DEV_FORM_FINDER_S3_BUCKET = <AWS bucket name> # Required
DEV_FORM_FINDER_S3_ACCESS_KEY = <AWS secret key> # Required
DEV_FORM_FINDER_S3_SECRET_KEY = <AWS secret key> # Required
DEV_FORM_FINDER_S3_REGION = <AWS Region name> # Required
Install gems
bundle install
Put the following environment variables into your shell profile
export COMMS_STAFF_PASSWORD='whatever'
Setup the database
rake db:create
rake db:migrate
rake db:seed
It's done using devise and devise invitable:
https://github.com/plataformatec/devise https://github.com/scambra/devise_invitable
You can create users with a rake task.
rake "user:create[[email protected], 123456789, admin, test]" to create a user.
##Testing
Run RSpec
rspec