Skip to content

wanderlust-create/my_online_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

rails-badge ruby-badge GitHub version PRsWelcome

My online shop serves as a platform for merchants to add inventory, add shipments to customers, and make adjustments to their inventory and shipments.

The specifics: what can a merchant do on My Online Store app?

  • 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

My Online Store application details

Table of Contents
  1. Getting Started
  2. How to use this application
  3. How the schema is designed
  4. Testing

Getting Started

Versions
  • Ruby 2.7.2
  • Rails 7.0.3

Gems

Testing rspec-rails | simplecov | capybara | shoulda-matchers | pry |


Set Up

On your local system, open a terminal session to run the following commands:

  1. Clone this repository:[email protected]:wanderlust-create/my_online_store.git
  2. Navigate to the newly cloned directory:cd my_online_store
  3. If bundler is not installed run:gem install bundler
  4. To install the required Gems run:bundle install
  5. If errors occur, check for proper installation and versions of:bundler, ruby, and rails
  6. Set up the database locally with:rails db:{drop,create, migrate, seed}
  7. Open your text editor and check to see that schema.rb was created.
  8. You may also run the RSpec test suite locally with the command bundle exec rspec to ensure everything is functioning as expected.

How to use this application

Create your merchant account:
  • 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
View a list of all my items:
  • From the page that lists your shipments, click the link to Items list
Add an inventory item:
  • From the page that lists your items, click the link to Create new item
  • Complete the requested information for your new item.
  • Click Submit
Delete an inventory item:
  • 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'
Create a shipment:
  • 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
View a list of all my shipments:
  • From the page that lists your items, click the link to Shipment list
Edit shipment details:
  • 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
Add an item to a shipment:
  • 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
Delete an item from a 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

Screenshots of CRUD functionality

Welcome page

welcome_page

Item Index page

items_index

Shipments Show Page

shipments_show

Update Shipment page

update_shipment

Schema Design

schema

Testing

My Online Store was created using Test Driven Development methodology.

RSpec testing

Run test suite using bundle exec rspec. All tests are currently passing passing. RSpec

Simplecov testing

Simplecov shows 100% code testing coverage. simplecov

Contributor

💻 Tamara Dowis | Github | LinkedIn


Practies & Process:

OOP TDD MVC REST forthebadge forthebadge

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published