- Introduction
- Install Tools
- Create React App
- Create Git Repository
- List Products
- create products array
- add product images
- render products
- style products
- Add page routing
- npm i react-router-dom
- create route for home screen
- create router for product screen
- Create Node.JS Server
- run npm init in root folder
- Update package.json set type: module
- Add .js to imports
- npm install express
- create server.js
- add start command as node backend/server.js
- require express
- create route for / return backend is ready.
- move products.js from frontend to backend
- create route for /api/products
- return products
- run npm start
- Fetch Products From Backend
- set proxy in package.json
- npm install axios
- use state hook
- use effect hook
- use reducer hook
- Manage State By Reducer Hook
- define reducer
- update fetch data
- get state from usReducer
- Add bootstrap UI Framework
- npm install react-bootstrap bootstrap
- update App.js
- Create Product and Rating Component
- create Rating component
- Create Product component
- Use Rating component in Product component
- Create Product Details Screen
- fetch product from backend
- create 3 columns for image, info and action
- Create Loading and Message Component
- create loading component
- use spinner component
- create message component
- create utils.js to define getError fuction
- Create React Context For Add Item To Cart
- Create React Context
- define reducer
- create store provider
- implement add to cart button click handler
- Complete Add To Cart
- check exist item in the cart
- check count in stock in backend
- 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 monogodb database
- install local mongodb database
- npm install mongoose
- connect to mongodb database
- Seed Sample Products
- create Product model
- create seed route
- use route in server.js
- seed sample product
- Seed Sample Users
- create user model
- seed sample users
- Create Signin Backend API
- create signin api
- npm install jsonwebtoken
- define generateToken
- Complete Signin Screen
- handle submit action
- save token in store and local storage
- show user name in header
- Create Shipping Screen
- create form inputs
- handle save shipping address
- add checkout wizard bar
-
Notifications
You must be signed in to change notification settings - Fork 0
MuhammadBabarAbbas/mern-cart
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Application created as part of learning MERN Stack
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published