Cody helped me https://www.educba.com/bootstrap-toggle-button/ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed https://getbootstrap.com/docs/5.1/forms/checks-radios/
First, install all of the dependencies. You should only need to do this once.
npm install
npm start
The client was bootstrapped with Create React App.
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
- Update useCart hook to add cart state to localstorage.
- Add actions for loading, updating, deleting
- Update the reducer for each
- Add useEffect to initialize saved cart on load
- Update order post route on server to create new Order in db
- Return Order ID
- Display ID in successful order confirmation on client side
- Add handler to inputs Consult React Payments README
- Disable Complete Order button until valid
- Validate before submitting in handlePlaceOrder()