My online shop serves as a platform for merchants to add inventory, add shipments to customers, and make adjustments to their inventory and shipments.
- Create a merchant account
- Create inventory items
- Edit inventory items
- Delete inventory items
- View a list of all inventory items
- Create a shipment
- Edit shipment details
- Add inventory items to a shipment, using a selection to reduce errors
- Remove inventory items from a shipment
Table of Contents
- Ruby 2.7.2
- Rails 7.0.3
Testing rspec-rails | simplecov | capybara | shoulda-matchers | pry |
On your local system, open a terminal session to run the following commands:
- Clone this repository:
[email protected]:wanderlust-create/my_online_store.git
- Navigate to the newly cloned directory:
cd my_online_store
- If bundler is not installed run:
gem install bundler
- To install the required Gems run:
bundle install
- If errors occur, check for proper installation and versions of:
bundler
,ruby
, andrails
- Set up the database locally with:
rails db:{drop,create, migrate, seed}
- Open your text editor and check to see that
schema.rb
was created. - You may also run the RSpec test suite locally with the command
bundle exec rspec
to ensure everything is functioning as expected.
- Navigate to the welcome page
- Click the link to
Create New Merchant Account
link on the top - Add your name in the space provided
- Click
Submit
- From the page that lists your shipments, click the link to
Items list
- From the page that lists your items, click the link to
Create new item
- Complete the requested information for your new item.
- Click
Submit
- Tell yourself that this is not reversible, but reassure yourself that you can always re-add it.
- From the page that lists your items, click the link to 'Delete' below the item'
- From the page that lists your items, click the link to
Create new shipment
- From the page that lists your shipments, click the link to
Create new shipment
- Complete the form with the required information
- Click
Submit
- From the page that lists your items, click the link to
Shipment list
- From the page that lists your shipments, click the link to
Review shipment details
- From the page that lists your shipments, click the link to
Update shipment details
- Update the form with the updated information
- Click
Submit
- From the page that lists your shipments, click the link to
Review shipment details
- All of your items are listed towards the bottom of the page
- Select the radio button to the left of your item name
- Click
Add item to the shipment
- From the page that lists your shipments, click the link to
Review shipment details
- Find the item you want to remove from the list of items included in the shipment
- Click the
Remove
link below the item price - This is not reversible, but you can easily re-add it by selecting the radio button at the bottom of the page
My Online Store was created using Test Driven Development methodology.
Run test suite using bundle exec rspec
. All tests are currently passing passing.
Simplecov shows 100% code testing coverage.
💻 Tamara Dowis | Github | LinkedIn