This is setting up an API using Austin Kabiru's API tutorial as a guide.
UPDATE 2024-02-16: The guide is outdated but is still is a good start.
Did own research to make sure dependencies where up to date by cross-referencing dependency docs.
Bundler, Rails, Ruby, Postgres, and Yarn have been updated.
- System dependencies
- ruby 3.2.1
- Rails 7.1.3
- Database creation (Postrgresql)
$ rake db:create db:migrate db:seed
$ ./bin/dev
- How to run the test suite (Rspec)
$ bundle exec rspec
Data credit goes to Cruelty-free Kitty. Her data is well collected and maintained and the list, used to gather the initial data in the seed files, is free. I take no claim of the seed data and this project is just a personal project for learning and skill building purposes.
Brands include the brand name
, url
and category_price
, and different cruelty-free category booleans.
- Note: Using Postman to visualize and check endpoints
Products is each item within a brand.
Websites is where you can purchase a brand from. brand has_many websites that a user can go to in order to purchase products from that brand.
Where each product can be purchased with links.