Skip to content

Commit c9a6cb8

Browse files
committed
update readme for run locally
1 parent f9c14d3 commit c9a6cb8

1 file changed

Lines changed: 43 additions & 13 deletions

File tree

README.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# React & Node Tutorial - Full ECommerce in 5 Hours [2020]
2+
23
Welcome to my React and Node tutorial to build a fully-functional e-commerce website in 5 hours. Open your code editor and follow me for the next hours to build an e-commerce website using React and Node.JS.
34

45
## Demo Website
@@ -12,79 +13,108 @@ Welcome to my React and Node tutorial to build a fully-functional e-commerce web
1213
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/Fy9SdZLBTOo/0.jpg)](https://www.youtube.com/watch?v=Fy9SdZLBTOo)
1314

1415
## You Will Learn
15-
- HTML5 and CSS3: Semantic Elements, CSS Grid, Flexbox
16-
- React: Components, Props, Events, Hooks, Router, Axios
17-
- Redux: Store, Reducers, Actions
18-
- Node & Express: Web API, Body Parser, File Upload, JWT
19-
- MongoDB: Mongoose, Aggregation
20-
- Development: ESLint, Babel, Git, Github,
21-
- Deployment: Heroku
22-
- Watch React & Node Tutorial
16+
17+
- HTML5 and CSS3: Semantic Elements, CSS Grid, Flexbox
18+
- React: Components, Props, Events, Hooks, Router, Axios
19+
- Redux: Store, Reducers, Actions
20+
- Node & Express: Web API, Body Parser, File Upload, JWT
21+
- MongoDB: Mongoose, Aggregation
22+
- Development: ESLint, Babel, Git, Github,
23+
- Deployment: Heroku
24+
- Watch React & Node Tutorial
25+
26+
## Run Locally
27+
28+
- git clone git@github.com:basir/node-react-ecommerce.git
29+
- cd node-react-ecommerce
30+
- Run Backend
31+
- npm install
32+
- npm start
33+
- Run Frontend
34+
- open new terminal
35+
- cd frontend
36+
- npm install
37+
- npm start
38+
39+
Let me know if you have any questions. [Email Basir](mailto:basir.jafarzadeh@gmail.com)
2340

2441
### [00:02:00 Part 01- Introduction](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=120s)
25-
It gives you an overview of the tutorial to build an eCommerce website like Amazon.
2642

43+
It gives you an overview of the tutorial to build an eCommerce website like Amazon.
2744

2845
### [00:08:26 Part 02- Install Tools](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=506s)
29-
You need to install a code editor and a web browser to start web development. In this part, we will prepare the environment to start coding.
3046

47+
You need to install a code editor and a web browser to start web development. In this part, we will prepare the environment to start coding.
3148

3249
### [00:12:36 Part 03- Website Template](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=756s)
50+
3351
In this part, you create a web template for the eCommerce website.
3452
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/56kqn8m5n1m9fejdoxkz.png)
3553

3654
### [00:29:47 Part 04- Products List](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=1787s)
55+
3756
We will create a list of products as static HTML elements.
3857

3958
### [00:41:54 Part 05- Create Sidebar](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=2514s)
59+
4060
We will create a hamburger menu that shows and hide the sidebar. Also, we design the details page of the products.
4161
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3sceblg6i6790minhaxg.jpg)
4262

4363
### [00:52:39 Part 06- Create React App](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=3159s)
64+
4465
This part is about the frontend. We use React library to build the UI elements.
4566

4667
### [01:01:09 Part 07- Render Products](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=3669s)
68+
4769
This is the home page of e-commerce. It shows a list of products.
4870
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hqiwteg10o8a2cnq0wwi.jpg)
4971

5072
### [01:06:30 Part 08- Product Details](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=3990s)
73+
5174
When the user clicks on a product there should a page to show details about that product. This lesson is all about making an attractive details page.
5275
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/csskvzbcmz4ypki2xjgk.jpg)
5376

5477
### [01:30:53 Part 09- Create Node Server](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=5453s)
78+
5579
This part is about Node and Express. They are the popular framework to create a web server using JavaScript language. We will create a MongoDB database and save and retrieve the admin user.
5680

5781
### [01:39:52 Part 10- Fetch Server Data](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=5992s)
82+
5883
In this lesson, we use React Hooks to fetch data from the server. We use the axios library to do this job in a modern async/await style.
5984

6085
### [01:47:55 Part 11- Manage State With Redux](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=6475s)
86+
6187
When it comes to handling multiple forms with their data nothing is better than state management. We use Redux in this lesson to handle complex state and keep the app behavior predictable.
6288

6389
### [02:07:11 Part 12- Add Redux To Details](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=7631s)
90+
6491
In this part, we move the details page state to Redux. First, we create reducers then define actions and connect them to the details component.
6592

6693
### [02:29:23 Part 13- Shopping Cart Screen](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=8963s)
94+
6795
Shopping Cart is the heart of any e-commerce website. We focus on creating a user-friendly shopping cart using React and Redux.
6896
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/fyzf0no5ej1fgxp5972e.png)
6997

7098
### [03:08:11 Part 14- Connect MongoDB](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=11291s)
99+
71100
This lesson is about persisting data on the MongoDB database. We use mongoose package to create models and save and retrieve data from the database.
72101

73102
### [03:21:35 Part 15- Sign In User](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=12095s)
103+
74104
We need to register the user before redirecting them to the checkout. In this part, we will create forms for getting user info and save them in the database.
75105
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/92coj0rezr5508vhfv34.png)
76106

77107
### [03:56:02 Part 16- Manage Products](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=14162s)
108+
78109
Admin should be able to define products and update the count in stock whenever they like. This page is about managing ECommerce products.
79110
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/154a5zk6vfapukjaxwyu.png)
80111

81112
### [04:38:43 Part 17- Checkout Wizard](https://www.youtube.com/watch?v=Fy9SdZLBTOo&t=16723s)
113+
82114
In this part, we implement the checkout wizard including sign in, shipping info, payment method, and place order.
83115
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/l8w3g9mc3ccijt70wpf3.png)
84116

85117
## Summary
118+
86119
In this tutorial, we have made an eCommerce website like Amazon. Feel free to change this project based on your needs and add it to your portfolio.
87120
Also, I will love to hear your comment about this React and Node tutorial. Please share your thoughts here.
88-
89-
90-

0 commit comments

Comments
 (0)