Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

TechforgoodCAST/fusebox-insights

Repository files navigation

Fusebox Insights

Getting started

These instructions will get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ruby v2.5.5, Bundler, PostgreSQL, NodeJS and Yarn.

Install the app

  1. git clone https://github.com/TechforgoodCAST/fusebox-insights.git
  2. cd fusebox-insights
  3. bundle install
  4. yarn install

Set up the database

rails db:setup (you may need to update database.yml with your local Postgres credentials).

Run the app locally

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: "[email protected]", password: "Pa55w0rd").

Running tests

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.