As a CSR, I would like to view a list of the most recently added customers, so that I can follow up with them regarding their orders.
Acceptance Criteria:
Given that I am on the Customers page,
Whenever the page is loaded,
Then I see a list of the customers (ordered from most to least recently added).
Requirements/Validations:
Frontend
Navigating to the /customers or / path should route to the Customers page which displays a list of customers. This route is the home page/dashboard for the application
The page should display each customer’s id, first name, last name, phone, city and zipcode
Backend
The API GET api/customers will return a status code of 200 and a set of all customer record(s) as JSON (see the "Outputs" section below).
Inputs:
None
Outputs:
The API GET api/customers will return a status code of 200 and a set of all customer record(s) as JSON:
Create a simple wireframe (styles NOT needed) for the page.
Determine what components are needed for the page
Create the folder/files for the components, and create static components in each file.
Set up the routes needed to route the user to the placeholder components
Add state/props and other functionality to your components.
Since your backend is not likely built yet while you're creating the front-end, you can add test data to db.json and use the fake json-server API instead.
Build out the backend.
Update the front-end to call the real backend API. Make sure everything works.
When everything is working, style your application. Follow the style guide
User-story-5: List all customers
As a CSR, I would like to view a list of the most recently added customers, so that I can follow up with them regarding their orders.
Acceptance Criteria:
Given that I am on the Customers page, Whenever the page is loaded, Then I see a list of the customers (ordered from most to least recently added).
Requirements/Validations:
Frontend
/customers
or/
path should route to the Customers page which displays a list of customers. This route is the home page/dashboard for the applicationBackend
api/customers
will return a status code of200
and a set of all customer record(s) as JSON (see the "Outputs" section below).Inputs:
None
Outputs:
The API GET
api/customers
will return a status code of200
and a set of all customer record(s) as JSON:Recommended steps
db.json
and use the fakejson-server
API instead.Resources