Pet Store API exercise.
-
Clone or download repository.
-
Have PostreSQL 10.X (or greater) and Ruby 3.0.3 installed.
-
Create a
.env
file at the root of the project with the specified values in.env.sample
. Modify accordingly the values where needed -
Run:
bin/setup
-
Run tests with:
RAILS_ENV=test bundle exec rspec
-
You can start the API with:
rails s
-
You can access the Swagger docs on /api-docs