This is the backend for our Happy Shop application.
- Sorting by price
- Filters by categories and price range
- API Docs on /api-docs
The "Add to Cart" button is there for aesthetics only. Coming soon. Used sqlite3 so it's easier to get it up and running.
Happy Shop uses a number of open source projects to work properly:
- Rails 5.2
- Ruby 2.5
- pagy
- jbuilder
- rswag
- rspec
- pry-rails
- factory_bot
- money-rails
- sqlite3
Install the dependencies. Run the migration and seed. And run the server as rails -p 8000
. Note: that the frontend is expecting port 8000
$ bundle
$ rails db:migrate && rails db:seed
$ rails -p 8000
The api docs is powered by Swagger-UI and can be accessed on localhost:8000/api-docs