These instructions will get a copy of the project up and running on your local machine for development and testing purposes.
Ruby v2.5.5, Bundler, PostgreSQL, NodeJS and Yarn.
git clone https://github.com/TechforgoodCAST/fusebox-insights.gitcd fusebox-insightsbundle installyarn install
rails db:setup (you may need to update database.yml with your local Postgres credentials).
rails s to start local development server then go to localhost:3000.
You will need to create a new user account to sign in, e.g. rails c then User.create(full_name: "My Name", email: "my@name.org", password: "Pa55w0rd").
rails test to run Ruby unit tests.
rails test:system to run browser tests.
If you have inconsistencies with systems test and JavaScript, try recompiling the assets. Delete public/assets then run rails assets:precompile NODE_ENV=test RAILS_ENV=test.