- Create Cart Screen
- create 2 columns
- display items list
- create action column
- Complete Cart Screen
- click handler for inc/dec item
- click handler for remove item
- click handler for checkout
- Create Signin screen
- create sign in form
- add email and password
- add signin button
- Connect To MongoDB Database
- create atlas mongodb databaase
- install local mongodb database
- npm install mongoose
- connect to mongodb database
- Seed Sample Data
- Create product model
- create user model
- create seed route
- use route in server.js
- seed sample product
- Seed Sample Users
- create user model
- seed sample users
- create user routes
- Implement Signin API
- create signin api
- npm install jsonwebtoken
- define generate Token
- complete Signin Screen
- npm i react-toastify to show error message
- in App.js, we imported ToastContainer and toastify.css
- use the userInfo and react context
- signoutHandler
- in Store.js, read userInfo from from localstorage and 2 new action in the reducer. USER_SIGNIN and USER_SIGNOUT
- Most work was signin screen to get user email and password using submitHandler to pass through signin API. if data is coorect we save to localstorage and redirect user to Redirect URL
- Create Shipping Screen
- create form inputs
- handle save shipping address
- add checkout wizard bar
- Create Sign Up Screen
- create input forms
- handle submit
- create backend api
- Implement Select Payment Method Screen
- create input forms
- handle submit
- Create Place Order Screen
- show cart items, payment and address
- handle place order action
- create order create api
- Implement Place Order Action
- handle place order action
- create order create api
- Create Order Screen
- create backend api for order/:id
- fetch order api in frontend
- show order information in 2 columns
- Pay Order By PayPal
- generate paypal client id
- create api to return client id
- install react-paypal-js
- use PayPalScriptProvider in index.js
- use usePayPalScriptReducer in Order Screen
- implement loadPaypalScript function
- render paypal button
- implement onApprove payment function
- create pay order api in backend
- Display Order History
- create order screen
- create order history api
- use api in the frontend
- Create Profile Screen
- get user info from context
- show user information
- create user update api
- update user info
-
Notifications
You must be signed in to change notification settings - Fork 0
bnyangwile/Mern-amazona
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published