If you are a new, this is the quickest way to get the app running.
- Get Ruby (3.0.0) installed
- Postgresql should be configured
- Install gems:
bundle install rails db:create db:migrate db:seed- Install js libraries
yarn install - Start app:
rails s --binding=127.0.0.1 - Open
http://127.0.0.1:3000/orhttp://localhost:3000/
The first thing you want to do is run tests to make sure everything is working before making any changes.
This step is optional as it destroys the DB
rails db:drop db:create RAILS_ENV=test # Drop and recreate the DB
rails db:migrate RAILS_ENV=test # Clean and setup the env
rspec # Run all test (takes a while)
rspec spec/{whatever file} # Run a specific rspec file
rspec spec/{whatever file}:{line number} # Run a specific test in rspec file
Start rails console
rails c
user-1@example.com / password
user-2@example.com / password