• Stars
    star
    289
  • Rank 143,419 (Top 3 %)
  • Language
    JavaScript
  • Created over 3 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Next Amazona

Build ECommerce Website Like Amazon by Next.js

What you will learn

  • NextJS basics like setting up project, navigating between pages and data fetching
  • NextJS advanced topics like dynamic routing, image optimization,  SSG and SSR
  • MaterialUI framework to build responsive website using custom theme, animation and carousel
  • ReactJS including decomposing components, context API and hooks
  • Next Connect package to build backend API
  • MongoDB and Mongoose to save and retrieve data like products, orders and users
  • PayPal developer api to make online payment
  • Deploy web applications on servers like Vercel and Netlify

Full Course

Learn building this ecommerce website on Udemy with 90% discount: https://www.udemy.com/course/nextjs-ecommerce

Run it Locally

$ git clone https://github.com/basir/next-amazona
$ cd next-amazona
$ npm install
$ npm run dev
$ Open http://localhost:3000/api/seed
$ Open http://localhost:3000

Lessons

  1. Introduction
    1. What you will learn
    2. What you will build
    3. What Packages you will use
  2. Install Tools
    1. VS Code
    2. Chrome
    3. Node.js
    4. MongoDB
  3. Create Next App
    1. npx create-next-app
    2. add layout component
    3. add header, main and footer
  4. Add Styles
    1. add css to header, main and footer
  5. Fix SSR Issue on MaterialUI
    1. add _documents.js
    2. add code to fix styling issue
  6. List Products
    1. add data.js
    2. add images
    3. render products
  7. Add header links
    1. Add cart and login link
    2. use next/link and mui/link
    3. add css classes for header links
  8. Route Product Details Page
    1. Make Product cards linkable
    2. Create /product/[slug] route
    3. find product based on slug
  9. Create Product Details Page
    1. Create 3 columns
    2. show image in first column
    3. show product info in second column
    4. show add to cart action on third column
    5. add styles
  10. Add MaterialUI Theme
    1. create theme
    2. use theme provider
    3. add h1 and h2 styles
    4. set theme colors
  11. Create Application Context
    1. define context and reducer
    2. set darkMode flag
    3. create store provider
    4. use it on layout
  12. Connect To MongoDB
    1. install mongodb
    2. install mongoose
    3. define connect and disconnect
    4. use it in the api
  13. Create Products API
    1. create product model
    2. seed sample data
    3. create /api/products/index.js
    4. create product api
  14. Fetch Products From API
    1. use getServerSideProps()
    2. get product from db
    3. return data as props
    4. use it in product screen too
  15. Implement Add to cart
    1. define cart in context
    2. dispatch add to cart action
    3. set click event handler for button
  16. Create Cart Screen
    1. create cart.js
    2. redirect to cart screen
    3. use context to get cart items
    4. list items in cart items
  17. Use Dynamic Import In Cart Screen
    1. Use next/dynamic
    2. Wrap cart in dynamic with out ssr
  18. Update Remove Items In Cart
    1. Implement onChange for Select
    2. Show notification by notistack
    3. implement delete button handler
  19. Create Login Page
    1. create form
    2. add email and password field
    3. add login button
    4. style form
  20. Create Sample Users
    1. create user model
    2. add sample user in seed api
  21. Build Login API 3. use jsonwebtoken to sign token 4. implement login api
  22. Complete Login Page
    1. handle form submission
    2. add userInfo to context
    3. save userInfo in cookies
    4. show user name in nav bar using menu
  23. Create Register Page
    1. create form
    2. implement backend api
    3. redirect user to redirect page
  24. Login and Register Form Validation
    1. install react-hook-form
    2. change input to controller
    3. use notistack to show errors
  25. Create Shipping Page 4. create form 5. add address fields 8. save address in context
  26. Create Payment Page
    1. create form
    2. add radio button
    3. save method in context
  27. Create Place Order Page
    1. display order info
    2. show order summary
    3. add place order button
  28. Implement Place Order Action
    1. create click handler
    2. send ajax request
    3. clear cart
    4. redirect to order screen
    5. create backend api
  29. Create Order Details Page
    1. create api to order info
    2. create payment, shipping and items
    3. create order summary
  30. Pay Order By PayPal
    1. install paypal button
    2. use it in order screen
    3. implement pay order api
  31. Display Orders History
    1. create orders api
    2. show orders in profile screen
  32. Update User Profile 1. create profile screen 2. create update profile api
  33. Create Admin Dashboard 1. Create Admin Menu 2. Add Admin Auth Middleware
    3. Implement admin summary api
  34. List Orders For Admin
    1. fix isAdmin middleware
    2. create orders page
    3. create orders api
    4. use api in page
  35. Deliver Order For Admin
    1. create deliver api
    2. add deliver button
    3. implement click handler
  36. List Products For Admin 2. create products page 3. create products api 4. use api in page
  37. Create Product Edit Page
    1. create edit page
    2. create api for product
    3. show product data in form
  38. Update Product
    1. create form submit handler
    2. create backend api for update
  39. Upload Product Image
    1. create cloudinary account
    2. get cloudinary keys
    3. create upload api
    4. upload files in edit page
  40. Create And Delete Products
    1. add create product button
    2. build new product api
    3. add handler for delete
    4. implement delete api
  41. List Users For Admin
    1. create users page
    2. create users api
    3. use api in page
  42. Create User Edit Page
    1. create edit page
    2. create api for user
    3. show user data in form
  43. Deploy on Vercel
    1. create vercel account
    2. connect to github
    3. create altas mongodb db
    4. push code to github
  44. Review Products
    1. add reviews model
    2. create api for reviews
    3. create review form
    4. show reviews on home screen
  45. Create Sidebar
    1. add drawer
    2. list categories
    3. redirect to search screen
  46. Create Search Box
    1. add form
    2. handle form submit
    3. redirect to search screen
  47. Create Search Page
    1. create filters
    2. list products
    3. show filters
  48. Add Carousel
    1. create featured products
    2. feed carousel data
    3. show popular products
  49. Choose Location on Map
    1. add google map
    2. create map screen
    3. choose location
    4. show in order screen

More Repositories

1

node-react-ecommerce

Build ECommerce Website Like Amazon By React & Node & MongoDB
JavaScript
1,674
star
2

amazona

Build Ecommerce Like Amazon By MERN Stack
JavaScript
597
star
3

mern-amazona

Build Ecommerce Like Amazon By MERN Stack
JavaScript
327
star
4

next-tailwind-amazona

Build Ecommerce Like Amazon By NEXT JS
JavaScript
234
star
5

node-javascript-ecommerce

Build ECommece Like Amazon Using Vanilla JS
JavaScript
214
star
6

react-shopping-cart

React Redux Tutorial - Build ECommerce Shopping Cart In 5 Hours
JavaScript
211
star
7

ecommerce-shopping-cart

Learn React & Redux From 0 to 100 in this course
JavaScript
140
star
8

react-course-final

JavaScript
68
star
9

next-amazona-v2

TypeScript
67
star
10

next-pg-shadcn-ecommerce

TypeScript
63
star
11

sanity-amazona

JavaScript
57
star
12

ts-mern-amazona

TypeScript
54
star
13

react-google-login

JavaScript
26
star
14

self-order-kiosk-final

JavaScript
20
star
15

nextjs-shopping-cart-like-amazon

JavaScript
19
star
16

tic-tac-toe

React.js Tic Tac Toe Game in 30 Minutes
JavaScript
18
star
17

next-15-admin-dashboard

TypeScript
17
star
18

support-desk-app

JavaScript
15
star
19

ts-mern-amazona-final

TypeScript
15
star
20

angular-amazona-final

TypeScript
14
star
21

coolshop

JavaScript
13
star
22

google-one-tap-login-app

JavaScript
12
star
23

next-amazona-2

JavaScript
10
star
24

coolshop-final

JavaScript
10
star
25

amazona-final

JavaScript
10
star
26

node-react-ecommerce-final

An ECommerce Website Like Amazon
JavaScript
8
star
27

nextjs-amazona-final

JavaScript
8
star
28

new-amazona-final

JavaScript
7
star
29

react-awesome-blog-final

JavaScript
7
star
30

basir.github.io

Basir Jafarzadeh Portfolio Website
HTML
7
star
31

mern-marketplace-final

JavaScript
6
star
32

react-advanced-app

JavaScript
6
star
33

react-basic-app

JavaScript
6
star
34

ssr-shopping-cart

JavaScript
6
star
35

razorpay-app

JavaScript
6
star
36

node-javascript-ecommerce-final

JavaScript
6
star
37

nextjs-ecommerce-final

JavaScript
6
star
38

react-shopping-cart-final

Get 90% Discount on this udemy course
JavaScript
6
star
39

sanity-next-amazona-final

JavaScript
5
star
40

vue-food-delivery-final

Vue
5
star
41

react-tic-tac-toe

Learn React basics and reducer hooks by creating a game
JavaScript
5
star
42

react-18-shopping-cart

JavaScript
5
star
43

self-order-kiosk

JavaScript
5
star
44

next-admin-products-netlify

TypeScript
5
star
45

angular-amazona

TypeScript
4
star
46

mern-marketplace

JavaScript
4
star
47

react-table-app

react-table in action
JavaScript
4
star
48

food-delivery-app-final

Vue
4
star
49

small-shopping-cart

JavaScript
4
star
50

amazona-app

JavaScript
4
star
51

react-awesome-blog

JavaScript
4
star
52

react-todo-app

JavaScript
3
star
53

react-google-login-app-final

JavaScript
3
star
54

nextjs-tailwind-amazona-final

JavaScript
3
star
55

basir-portfolio

HTML
3
star
56

ecommerce-tools

3
star
57

shopping-cart-next-rtk-query

JavaScript
3
star
58

support-desk-react-socket-io-final

JavaScript
3
star
59

amazona-in

JavaScript
2
star
60

sonnet-18

JavaScript
2
star
61

next-netlify-starter

JavaScript
2
star
62

my-app

JavaScript
1
star
63

react-node-send-email

JavaScript
1
star
64

the-modern-javascript-course

JavaScript
1
star
65

next-amazona-app

1
star
66

next-server-actions-admin-products

TypeScript
1
star