๐๏ธ Demo: Product API
This is a demo product service using Ruby on Rails as an API.
๐ Gems
ruby 3.0.3
rails 6.1.4
sqlite 1.4
rspec-rails 5.1
factory_bot_rails 6.2
faker 2.19
๐ง Preparation
-
Install gems & dependencies
bundle install
-
Run all pending migrations
rails db:migrate
-
Seeding products & users (products owner) into database
rails db:seed
-
Install MailCatcher for catch any mail in local development (optional)
gem install mailcatcher
๐ Execution
-
Launch the app
rails server
-
Launch MailCatcher
mailcatcher
Open
http://127.0.0.1:1080
in the browser
๐งช Test
-
Launch the test
rspec
-
Open
converage/index.html
in the browsermacOS
open coverate/index.html
linux
xdg-open coverage/index.html
๐ Documentation
Postman Documentation: demo_product_api