Skip to content

KenzieAcademy-Students/kenziecart-app-mireille272

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

se-mern-ecommerce-app

Run Client/Server for Development

First, install all of the dependencies. You should only need to do this once.

npm install
npm start

Frontend

The client was bootstrapped with Create React App.

Backend

The server uses MongoDB, make sure you have it installed in your system.

Install MongoDB and start your server: MongoDB instructions

Seed database with sample data:

npm run seed

Student Challenges

Implement Saved Cart on client

  1. Update useCart hook to add cart state to localstorage.
  2. Add actions for loading, updating, deleting
  3. Update the reducer for each
  4. Add useEffect to initialize saved cart on load

Create Order on successful checkout

  1. Update order post route on server to create new Order in db
  2. Return Order ID
  3. Display ID in successful order confirmation on client side

Validate Form / Credit Card details before submitting order

  1. Add handler to inputs Consult React Payments README
  2. Disable Complete Order button until valid
  3. Validate before submitting in handlePlaceOrder()

About

kenziecart-app-mireille272 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published