-
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
- craete 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
-
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 cloumns
-
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
-
Publish To Heroku
- create and config node project
- serve build folder in frontend folder
- Create heroku account
- connect it to github
- Create mongodb atlas database
- Set database connection in heroku env variables
- Commit and push
-
Add Sidebar and Search Box
- add sidebar
- add search box
-
Create Search Screen
- show filters
- create api for searching products
- display results
-
Create Admin Menu
- define protected route component
- define admin route component
- add menu for admin in header
-
Create Dashboard Screen
- create dashboard ui
- implement backend api
- connect ui to backend
-
Manage Products
- create products list ui
- implement backend api
- fetch data
-
Create Product
- create products button
- implement backend api
- handle on click
-
Create Edit Product
- create edit button
- create edit product ui
- dispaly product info in the input boxes
-
Implement Update Product
- create edit product backend api
- handle update click
mern-amazona-app's Introduction
mern-amazona-app's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.