The project uses Ruby 3.1.2, so if you don't have such a version installed and you don't want to install it or you don't want to install new gems, then I recommend using the installation via Docker.
An alternative option is to change Ruby version in the project to the one that you have installed. In theory, everything should work, but I haven't tested.
git clone https://github.com/sapience/reviews.git
cd
into the project's folder.
Run:
docker compose build
docker compose run --rm reviews rails db:create db:migrate db:seed
docker compose run --rm reviews rails assets:precompile
Make sure you have Ruby and yarn installed.
Run:
bundle
yarn
rails db:create db:migrate db:seed
rails assets:precompile
No additional configuration is required.
The applicatioin will be accessible on http://0.0.0.0:3000
docker compose up
rails s
I use Rspec as a test framework.
docker compose --rm reviews rspec
rspec
The initial data is added via the db/seeds.rb file. If you want to reseed data then run:
docker compose --rm reviews rails db:seed
rails db:seed