A prototype app for sprint reporting.
If you use asdf to manage your NodeJS and Ruby versions:
asdf plugin add nodejs
asdf plugin add ruby
asdf install
Then install Bundler and Yarn:
gem install bundler
npm install --global yarn
You may need to configure your PostgreSQL bindings to install the pg
gem:
# Mac
brew install libpq
bundle config build.pg --with-pg-config=/usr/local/opt/libpq/bin/pg_config
Then run Bundler and Yarn to install the application dependencies:
bundle install
yarn install
Set up the empty database:
bin/rake db:setup
To collect email locally, install and run Mailcatcher:
gem install mailcatcher
mailcatcher
If you encounter issues installing thin
, there's a workaround in the Mailcatcher README.
Once complete, start the app in development:
bin/dev
In development, you can preview each view component using Lookbook. Visit http://localhost:5000/lookbook
.
You'll need Chrome (or Chromium) installed to run the feature specs which require JavaScript.
Rails should precompile assets automatically before running tests. If this doesn't happen, you can build assets manually by running yarn build
(for JavaScript) and yarn build:css
(for CSS).
To run the full test suite:
bin/rake