alect47 / mini_shop Goto Github PK
View Code? Open in Web Editor NEWThis project forked from turingschool-examples/mini_shop
This project forked from turingschool-examples/mini_shop
As a visitor
When I visit '/items'
Then I see each Item in the system including the Item's:
- name
- description
- price
- image
- active/inactive status
- inventory
- the name of the merchant that sells the item
child of turingschool-examples#122
child of turingschool-examples#130
Items are sold on the site. They belong to a merchant.
As a visitor
When I visit '/merchants/:id'
Then I see the merchant with that id including the merchant's:
- name
- address
- city
- state
- zip
child of turingschool-examples#128
child of turingschool-examples#130
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Merchant Index
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit any page on the site
Then I should see a reasonably well styled page
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Item Index
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit a merchant show page
Then I see a link to delete the merchant
When I click the link
Then a 'DELETE' request is sent to '/merchants/:id',
the merchant is deleted,
and I am redirected to the merchant index page where I no longer see this merchant
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#126
As a visitor
When I visit '/items/:id'
Then I see the item with that id including the item's:
- name
- active/inactive status
- price
- description
- image
- inventory
- the name of the merchant that sells the item
child of turingschool-examples#122
child of turingschool-examples#130
As a visitor
When I visit a Merchant Items Index page
Then I see a link to add a new item for that merchant
When I click the link
I am taken to '/merchants/:merchant_id/items/new' where I see a form to add a new item
When I fill in the form with the item's:
- name
- price
- description
- image
- inventory
Then a `POST` request is sent to '/merchants/:merchant_id/items',
a new item is created for that merchant,
that item has a status of 'active',
and I am redirected to the Merchant Items Index page where I see the new item
DO THESE STORIES FIRST:
child of turingschool-examples#122
child of turingschool-examples#130
depends on turingschool-examples#120
As a visitor
When I visit the Merchant Index page
Then I see a link to create a new merchant
When I click this link
Then I am taken to '/merchants/new' where I see a form for a new merchant
When I fill out the form with a new merchant's:
- name
- address
- city
- state
- zip
And I click the button to submit the form
Then a `POST` request is sent to '/merchants',
a new merchant is created,
and I am redirected to the Merchant Index page where I see the new Merchant listed.
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#127
As a visitor
When I visit '/merchants/:merchant_id/items'
Then I see each Item that belongs to the Merchant with that merchant_id including the Item's:
- name
- price
- image
- active/inactive status
- inventory
child of turingschool-examples#122
child of turingschool-examples#130
As a visitor
When I visit a merchant show page
Then I see a link to update the merchant
When I click the link
Then I am taken to '/merchants/:id/edit' where I see a form to edit the merchant's data including:
- name
- address
- city
- state
- zip
When I fill out the form with updated information
And I click the button to submit the form
Then a `PATCH` request is sent to '/merchants/:id',
the merchant's info is updated,
and I am redirected to the Merchant's Show page where I see the merchant's updated info
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#126
As a visitor
When I click on the name a merchant anywhere on the site
Then that link takes me to that Merchant's show page
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Merchant Index
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit an Item Show page
Then I see a link to change the Item's active status
Active items should have the link "deactivate"
Inactive items should have the link "activate"
When I click the link
Then a 'PATCH' request is sent to '/items/:id/activate' or 'items/:id/deactivate' (depending on the link)
and I am redirected to the Item Show page where I see the active status has been toggled
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#119
As a visitor
When I visit a Merchant Items Index page
Then I see a link to add a new item for that merchant
When I click the link
I am taken to '/merchants/:merchant_id/items/new' where I see a form to add a new item
When I fill in the form with the item's:
- name
- price
- description
- image
- inventory
Then a `POST` request is sent to '/merchants/:merchant_id/items',
a new item is created for that merchant,
that item has a status of 'active',
and I am redirected to the Merchant Items Index page where I see the new item
DO THESE STORIES FIRST:
child of turingschool-examples#122
child of turingschool-examples#130
depends on turingschool-examples#120
As a visitor
When I visit '/items'
Then I see each Item in the system including the Item's:
- name
- description
- price
- image
- active/inactive status
- inventory
- the name of the merchant that sells the item
child of turingschool-examples#122
child of turingschool-examples#130
As a visitor
When I visit an Item Show page
Then I see a link to update that Item
When I click the link
I am taken to '/items/:id/edit' where I see a form to edit the item's data including:
- name
- price
- description
- image
- inventory
When I click the button to submit the form
Then a `PATCH` request is sent to '/items/:id',
the item's data is updated,
and I am redirected to the Item Show page where I see the Item's updated information
DO THESE STORIES FIRST:
child of turingschool-examples#122
child of turingschool-examples#130
depends on turingschool-examples#119
As a visitor
When I visit a merchant show page ('/merchants/:id')
Then I see a link to take me to that merchant's items page ('/merchants/:id/items')
child of turingschool-examples#115
child of turingschool-examples#130
Items are sold on the site. They belong to a merchant.
Users should be able to use the site easily. This means making sure there are links/buttons to reach all parts of the site and the styling/layout is sensible.
As a visitor
When I visit any page on the site
Then I see a link at the top of the page that takes me to the Item Index
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit any page on the site
Then I should see a reasonably well styled page
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I click on the name a item anywhere on the site
Then that link takes me to that Item's show page
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit the Merchant Index page
Then I see a link to create a new merchant
When I click this link
Then I am taken to '/merchants/new' where I see a form for a new merchant
When I fill out the form with a new merchant's:
- name
- address
- city
- state
- zip
And I click the button to submit the form
Then a `POST` request is sent to '/merchants',
a new merchant is created,
and I am redirected to the Merchant Index page where I see the new Merchant listed.
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#127
BE Mod 2 Week 1 Solo Project
erb
)save_and_open_page
to view the HTML generated when visiting a path in a feature testrails routes
to get additional information about the routes that exist in a Rails application<h1>
, <h2>
, etc.<p>
<body>
<a>
and the href
attribute<img>
and the src
attribute<div>
<section>
<ul>
, <ol>
, and <li>
<form>
<input>
resources
syntax)form_tag
for all forms (no use of form_for
)As a visitor
When I visit a Merchant Items Index page
Then I see a link to show only active items
And I also see a link to show only inactive items
When I click the link
Then my path is something like '/merchants/:merchant_id/items?active=true'
And I see only the Items sold by the merchant that are active/inactive.
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#121
As a visitor
When I click on the name a merchant anywhere on the site
Then that link takes me to that Merchant's show page
child of turingschool-examples#115
child of turingschool-examples#130
Merchants are organizations/companies who sell items on our site (as opposed to individual people/users)
As a visitor
When I visit a Merchant Items Index page
Then I see a link to show only active items
And I also see a link to show only inactive items
When I click the link
Then my path is something like '/merchants/:merchant_id/items?active=true'
And I see only the Items sold by the merchant that are active/inactive.
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#121
Users should be able to use the site easily. This means making sure there are links/buttons to reach all parts of the site and the styling/layout is sensible.
As a visitor
When I visit an Item Show page
Then I see a link to change the Item's active status
Active items should have the link "deactivate"
Inactive items should have the link "activate"
When I click the link
Then a 'PATCH' request is sent to '/items/:id/activate' or 'items/:id/deactivate' (depending on the link)
and I am redirected to the Item Show page where I see the active status has been toggled
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#119
As a visitor
When I visit an Item Show page
Then I see a link to change the Item's active status
Active items should have the link "deactivate"
Inactive items should have the link "activate"
When I click the link
Then a 'PATCH' request is sent to '/items/:id/activate' or 'items/:id/deactivate' (depending on the link)
and I am redirected to the Item Show page where I see the active status has been toggled
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#119
As a visitor
When I visit a merchant show page
Then I see a link to update the merchant
When I click the link
Then I am taken to '/merchants/:id/edit' where I see a form to edit the merchant's data including:
- name
- address
- city
- state
- zip
When I fill out the form with updated information
And I click the button to submit the form
Then a `PATCH` request is sent to '/merchants/:id',
the merchant's info is updated,
and I am redirected to the Merchant's Show page where I see the merchant's updated info
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#126
Merchants are organizations/companies who sell items on our site (as opposed to individual people/users)
As a visitor
When I click on the name a item anywhere on the site
Then that link takes me to that Item's show page
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit an item show page
Then I see a link to delete the item
When I click the link
Then a 'DELETE' request is sent to '/items/:id',
the item is deleted,
and I am redirected to the item index page where I no longer see this item
child of turingschool-examples#122
child of turingschool-examples#130
BE Mod 2 Week 1 Solo Project
erb
)save_and_open_page
to view the HTML generated when visiting a path in a feature testrails routes
to get additional information about the routes that exist in a Rails application<h1>
, <h2>
, etc.<p>
<body>
<a>
and the href
attribute<img>
and the src
attribute<div>
<section>
<ul>
, <ol>
, and <li>
<form>
<input>
resources
syntax)form_tag
for all forms (no use of form_for
)As a visitor
When I visit '/items/:id'
Then I see the item with that id including the item's:
- name
- active/inactive status
- price
- description
- image
- inventory
- the name of the merchant that sells the item
child of turingschool-examples#122
child of turingschool-examples#130
Users should be able to use the site easily. This means making sure there are links/buttons to reach all parts of the site and the styling/layout is sensible.
As a visitor
When I visit a merchant show page ('/merchants/:id')
Then I see a link to take me to that merchant's items page ('/merchants/:id/items')
child of turingschool-examples#115
child of turingschool-examples#130
As a visitor
When I visit an Item Show page
Then I see a link to update that Item
When I click the link
I am taken to '/items/:id/edit' where I see a form to edit the item's data including:
- name
- price
- description
- image
- inventory
When I click the button to submit the form
Then a `PATCH` request is sent to '/items/:id',
the item's data is updated,
and I am redirected to the Item Show page where I see the Item's updated information
DO THESE STORIES FIRST:
child of turingschool-examples#122
child of turingschool-examples#130
depends on turingschool-examples#119
Items are sold on the site. They belong to a merchant.
As a visitor
When I visit a merchant show page
Then I see a link to delete the merchant
When I click the link
Then a 'DELETE' request is sent to '/merchants/:id',
the merchant is deleted,
and I am redirected to the merchant index page where I no longer see this merchant
DO THESE STORIES FIRST:
child of turingschool-examples#128
child of turingschool-examples#130
depends on turingschool-examples#126
As a visitor
When I visit an item show page
Then I see a link to delete the item
When I click the link
Then a 'DELETE' request is sent to '/items/:id',
the item is deleted,
and I am redirected to the item index page where I no longer see this item
child of turingschool-examples#122
child of turingschool-examples#130
As a visitor
When I visit '/merchants/:merchant_id/items'
Then I see each Item that belongs to the Merchant with that merchant_id including the Item's:
- name
- price
- image
- active/inactive status
- inventory
child of turingschool-examples#122
child of turingschool-examples#130
As a visitor
When I visit a Merchant Items Index page
Then I see a link to show only active items
And I also see a link to show only inactive items
When I click the link
Then my path is something like '/merchants/:merchant_id/items?active=true'
And I see only the Items sold by the merchant that are active/inactive.
DO THESE STORIES FIRST:
child of turingschool-examples#108
child of turingschool-examples#130
depends on turingschool-examples#121
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.