Thank you for taking the time to do this coding test.
This is a Ruby on Rails app that simulates a basic ecommerce website.
-
There are two database models:
Product
andRetailer
. -
Each product belongs to a retailer.
-
Each product has a price, which must be greater than $0.00.
-
The user can create, read, update, and delete products and retailers.
Your task is to develop the initial stage of a shopping cart feature.
Please complete the following user stories:
-
As a user, I can add a product to the cart.
-
As a user, I can see which products are in the cart.
-
As a user, I can remove a product from the cart.
-
Focus on the functionality. (The UI design isn't important, but it must work.)
-
Write tests.
-
Write clear commit messages.
-
You do not need to implement other features such as payment or user authentication.
Clone this repo to get started. Get the app running in your browser (see the instructions later in this document). Explore the basic functionality of the app, and think about the requested feature changes.
Commit your changes to the code. When finished, please email us with one of the following:
- a link to your copy of the Git repo (e.g. on GitHub), or
- a .zip file which includes the Git history.
This app has been tested with Ruby 2.5 and 2.6.
gem install bundler
bundle install
bundle exec rake db:setup db:migrate
bundle exec rspec
bundle exec rails server