- Ruby 3.1.2
- Rails 7.0.4
- Bundler 2.3.22
- psql 14.2
- npm 8.5.2
- yarn 1.22.17
- Clone the repository
git clone [email protected]:maxkadel/seahorse.git
- Go into application directory
cd seahorse
- Install gem bundle
bundle install
- Install yarn packages
yarn install
- Database creation - ensure you have a Postgres service running
bundle exec rails db:create
bundle exec rails db:migrate
- Bring up the application - can change how this occurs in
Procfile.dev
./bin/dev
- Should be able to see the application at http://localhost:3000/
- All the tests -
bundle exec rspec
- Single test -
bundle exec rspec spec/path/to/test.rb
- To list offenses -
bundle exec rubocop
- To auto-correct eligible offenses
bundle exec rubocop -a
- Validate CircleCI configuration without having to commit it first
circleci config validate
- Run CodeClimate in debug mode, without reporting
CODECLIMATE_DEBUG=1 codeclimate analyze
This application deploys with Heroku. For info on relevant Heroku commands, see https://devcenter.heroku.com/articles/getting-started-with-rails7#heroku-gems
git push heroku main
heroku run rake db:migrate