- Introduction
- Install Tools
- Create React App
- Create Git Repository
- List Products
- create products array
- add product images
- render products
- style products
- Add 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 useReducer
- 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 function
- Implement Add To Cart
- Create React Context
- define reducer
- create store provider
- implement add to cart button click handler
- Complete Add To Cart
- check existing items in the cart
- check count in stock on backend
- Create Cart Screen
- create 2 columns
- display items list
- create action column
- Complete Cart Screen
- click handler for increment/decrement item
- click handler for remove item
- click handler for checkout
- Create Signin Screen
- create sign-in form
- add email and password
- add sign-in button
- Connect to MongoDB Database
- create atlas mongodb database
- 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
- Create Signin Backend API
- create signin api
- npm install jsonwebtoken
- define generateToken
mern-amazona's Introduction
mern-amazona'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.