TODO: Project description
- Rails - ~> 5.2.1
- Ruby - 2.4.2
- PostgreSQL
If you haven't installed ruby, bundler, postgresql, selenium-webdriver, and chromedriver do that first.
brew cask install chromedriver
brew cask install selenium-webdriver
brew cask install postgresqlThen, do the following to set up this app:
git clone <REPO_URL>
cd <APP_DIR>
bundle install
cp .env.example .env
bundle exec rails db:setupTo run the app locally:
bundle exec foreman startOr run two sepearate processes for bundle exec rails s and bin/webpack-dev-server
Then navigate to http://localhost:3000
For a list of credentials you can use to log into the app, check the seeds file.
These logins are created via rails db:setup above.
Bundle Audit is a tool that enforces that we upgrade
our dependencies if they have vulnerabilities. We have it configured to run as part of our CI/CD
process. It checks all of the gem versions in Gemfile.lock against an online database of known
vulnerabilities and if it finds any it prints them out and errors.
If you run into an error in CI/CD relating to bundle-audit, take a look at the "Solution:" line.
Most of the time, the fix is simply to update the gem, which you can do with
bundle update whatevergem.