Cristian Vasta

Cristian Vasta

1605764820

Build Ecommerce Like Amazon By MERN Stack

Amazona ECommerce Website

amazona

PLEASE DO NOT SEND PULL REQUEST

ALL PRs WILL BE REJECTED UNTIL DECEMBER 2020

React & Node Tutorial - Full ECommerce in 9 Hours [2021]

Welcome to my React and Node tutorial to build a fully-functional e-commerce website exactly like amazon. Open your code editor and follow me for the next hours to build an e-commerce website using MERN stack (MongoDB, ExpressJS, React and Node.JS).

Demo Website

You Will Learn

  • HTML5 and CSS3: Semantic Elements, CSS Grid, Flexbox
  • React: Components, Props, Events, Hooks, Router, Axios
  • Redux: Store, Reducers, Actions
  • Node & Express: Web API, Body Parser, File Upload, JWT
  • MongoDB: Mongoose, Aggregation
  • Development: ESLint, Babel, Git, Github,
  • Deployment: Heroku
  • Watch React & Node Tutorial

Run Locally

1. Clone repo

$ git clone git@github.com:basir/amazona.git
$ cd amazona

2. Setup MongoDB

  • Local MongoDB
    • Install it from here
    • Create .env file in root folder
    • Set MONGODB_URL=mongodb://localhost/amazona
  • Atlas Cloud MongoDB
    • Create database at https://cloud.mongodb.com
    • Create .env file in root folder
    • Set MONGODB_URL=mongodb+srv://your-db-connection

3. Run Backend

$ npm install
$ npm start

4. Run Frontend

# open new terminal
$ cd frontend
$ npm install
$ npm start

5. Seed Users and Products

6. Admin Login

Support

Lessons

  1. Introduction to this course
    1. what you will build
    2. what you will learn
    3. who are audiences
  2. Install Tools
    1. Code Editor
    2. Web Browser
    3. VS Code Extension
  3. Website Template
    1. Create amazona folder
    2. create template folder
    3. create index.html
    4. add default HTML code
    5. link to style.css
    6. create header, main and footer
    7. style elements
  4. Display Products
    1. create products div
    2. add product attributes
    3. add link, image, name and price
  5. Create React App
    1. npx create-react-app frontend
    2. npm start
    3. Remove unused files
    4. copy index.html content to App.js
    5. copy style.css content to index.css
    6. replace class with className
  6. Share Code On Github
    1. Initialize git repository
    2. Commit changes
    3. Create github account
    4. Create repo on github
    5. connect local repo to github repo
    6. push changes to github
  7. Create Rating and Product Component
    1. create components/Rating.js
    2. create div.rating
    3. style div.rating, span and last span
    4. Create Product component
    5. Use Rating component
  8. Build Product Screen
    1. Install react-router-dom
    2. Use BrowserRouter and Route for Home Screen
    3. Create HomeScreen.js
    4. Add product list code there
    5. Create ProductScreen.js
    6. Add new Route from product details to App.js
    7. Create 3 columns for product image, info and action
  9. Create Node.JS Server
    1. run npm init in root folder
    2. Update package.json set type: module
    3. Add .js to imports
    4. npm install express
    5. create server.js
    6. add start command as node backend/server.js
    7. require express
    8. create route for / return backend is ready.
    9. move products.js from frontend to backend
    10. create route for /api/products
    11. return products
    12. run npm start
  10. Load Products From Backend
    1. edit HomeScreen.js
    2. define products, loading and error.
    3. create useEffect
    4. define async fetchData and call it
    5. install axios
    6. get data from /api/products
    7. show them in the list
    8. create Loading Component
    9. create Message Box Component
    10. use them in HomeScreen
  11. Install ESlint For Code Linting
    1. install VSCode eslint extension
    2. npm install -D eslint
    3. run ./node_modules/.bin/eslint --init
    4. Create ./frontend/.env
    5. Add SKIP_PREFLIGHT_CHECK=true
  12. Add Redux to Home Screen
    1. npm install redux react-redux
    2. Create store.js
    3. initState= {products:[]}
    4. reducer = (state, action) => switch LOAD_PRODUCTS: {products: action.payload}
    5. export default createStore(reducer, initState)
    6. Edit HomeScreen.js
    7. shopName = useSelector(state=>state.products)
    8. const dispatch = useDispatch()
    9. useEffect(()=>dispatch({type: LOAD_PRODUCTS, payload: data})
    10. Add store to index.js
  13. Add Redux to Product Screen
    1. create product details constants, actions and reducers
    2. add reducer to store.js
    3. use action in ProductScreen.js
    4. add /api/product/:id to backend api
  14. Handle Add To Cart Button
    1. Handle Add To Cart in ProductScreen.js
    2. create CartScreen.js
  15. Implement Add to Cart Action
    1. create addToCart constants, actions and reducers
    2. add reducer to store.js
    3. use action in CartScreen.js
    4. render cartItems.length
  16. Build Cart Screen
    1. create 2 columns for cart items and cart action
    2. cartItems.length === 0 ? cart is empty
    3. show item image, name, qty and price
    4. Proceed to Checkout button
    5. Implement remove from cart action
  17. Implement Remove From Cart Action
    1. create removeFromCart constants, actions and reducers
    2. add reducer to store.js
    3. use action in CartScreen.js
  18. Create Sample Users In MongoDB
    1. npm install mongoose
    2. connect to mongodb
    3. create config.js
    4. npm install dotenv
    5. export MONGODB_URL
    6. create models/userModel.js
    7. create userSchema and userModel
    8. create userRoute
    9. Seed sample data
  19. Create Sample Products In MongoDB
    1. create models/productModel.js
    2. create productSchema and productModel
    3. create productRoute
    4. Seed sample data
  20. Create Sign-in Backend
    1. create /signin api
    2. check email and password
    3. generate token
    4. install json web token
    5. install dotenv
    6. return token and data
    7. test it using postman
  21. Design SignIn Screen
    1. create SigninScreen
    2. render email and password fields
    3. create signin constants, actions and reducers
    4. Update Header based on user login
  22. Implement SignIn Action
    1. create signin constants, actions and reducers
    2. add reducer to store.js
    3. use action in SigninScreen.js
  23. Create Register Screen
    1. create API for /api/users/register
    2. insert new user to database
    3. return user info and token
    4. create RegisterScreen
    5. Add fields
    6. Style fields
    7. Add screen to App.js
    8. create register action and reducer
    9. check validation and create user
  24. Create Shipping Screen
    1. create CheckoutSteps.js component
    2. create shipping fields
    3. implement shipping constant, actions and reducers
  25. Create Payment Screen
    1. create payment fields
    2. implement shipping constant, actions and reducers
  26. Design Place Order Screen
    1. design order summary fields
    2. design order action
  27. Create Place Order API
    1. createOrder api
    2. create orderModel
    3. create orderRouter
    4. create post order route
  28. Implement PlaceOrder Action
    1. handle place order button click
    2. create place order constants, action and reducer
  29. Create Order Screen
    1. build order api for /api/orders/:id
    2. create OrderScreen.js
    3. dispatch order details action in useEffect
    4. load data with useSelector
    5. show data like place order screen
    6. create order details constant, action and reducer
  30. Add PayPal Button
    1. get client id from paypal
    2. set it in .env file
    3. create route form /api/paypal/clientId
    4. create getPaypalClientID in api.js
    5. add paypal checkout script in OrderScreen.js
    6. show paypal button
  31. Implement Order Payment
    1. update order after payment
    2. create payOrder in api.js
    3. create route for /:id/pay in orderRouter.js
    4. rerender after pay order
  32. Display Orders History
    1. create customer orders api
    2. create api for getMyOrders
    3. show orders in profile screen
    4. style orders
  33. Display User Profile
    1. create user details api
    2. show user information
  34. Update User Profile
    1. create user update api
    2. update user info
  35. Create Admin View
    1. Create Admin Menu
    2. Create Admin Middleware in Backend
    3. Create Admin Route in Frontend
  36. List Products
    1. Create Product List Screen
    2. Add reducer to store
    3. show products on the screen
  37. Create Product
    1. build create product api
    2. build Create Product button
    3. define product create constant, action and reducer
    4. use action in Product List Screen
  38. Build Product Edit Screen
    1. create edit screen
    2. define state
    3. create fields
    4. load product details
    5. add to routes
  39. Update Product
    1. define update api
    2. define product update constant, action and reducer
    3. use action in Product Edit Screen
  40. Upload Product Image
    1. npm install multer
    2. define upload router
    3. create uploads folder
    4. Handle frontend
  41. Delete Product
    1. create delete api in backend
    2. create delete constants, action and reducer
    3. use it in product list screen
  42. List Orders
    1. create order list api
    2. create Order List Screen
    3. Add reducer to store
    4. show products on the screen
  43. Delete Order 2. create delete order action and reducer 3. add order delete action to order list
  44. Deliver Order
    1. create constant, actions and reducers for deliver order
    2. add order deliver action to order details screen
  45. Publish To Heroku
    1. Create git repository
    2. Create heroku account
    3. install Heroku CLI
    4. heroku login
    5. heroku apps:create amazona
    6. Edit package.json for build script
    7. Create Procfile
    8. Create mongodb atlas database
    9. Set database connection in heroku env variables
    10. Commit and push
  46. List Users
    1. build api for list users
    2. Create UserList Screen
    3. create order details constant, action and reducer
  47. Delete Users
    1. build api for delete users
    2. create order details constant, action and reducer
    3. Use action in UserListScreen

Download Details:

Author: basir

Source Code: https://github.com/basir/amazona

#react #javascript #reactjs

What is GEEK

Buddha Community

Build Ecommerce Like Amazon By MERN Stack

Ajay Kapoor

1626068978

Top MERN Stack Development Company in India

PixelCrayons - Get MERN stack development services from certified full stack developers having 5+ years of experience. You can also hire dedicated team as your team extension on hourly or full time basis.

2X Faster Delivery
Strict NDA Terms
Flexible Engagement Models

Our MERN Stack Development Services

MERN stack includes the best JavaScript technologies. We have expertise in all four of them that enables us to deliver optimum MERN stack development services.

Stay ahead of competition with our professional, tailor-made & enterprise-grade MERN Stack development services. Our MERN Stack web development company combines development expertise with modern frameworks and technologies to address critical needs of global clients across industries.

#mern stack web development services #mern stack web development #mern stack development company #mern stack web development company #mern stack development services #mern stack companies

How to Make a Website Like Amazon: Tech Stack, Costs, Features

E-commerce is seeing the fastest growth since its beginning due to the Covid-19 pandemic. The reason is businesses are finding new ways to sell their products that would help them maintain physical distance with the customers and the same applies to the customer as they are finding ways to purchase more products online.

Want to develop an e-commerce platform like Amazon?

WebClues Infotech has got the expertise, experience, and skills required to develop a successful e-commerce platform like Amazon. With a technologically advanced development team, WebClues Infotech has got the skills to leverage the latest technologies for your development needs.

Want to know more about e-commerce app development?

Visit: https://www.webcluesinfotech.com/how-to-build-an-ecommerce-website-like-amazon-ebay/

For free quotation click here: https://webcluesinfotech.com/get-quote/

View portfolio: https://www.webcluesinfotech.com/portfolio/

#ecommerce app development cost #ecommerce app development services #how to build an ecommerce website like amazon #costs to build an ecommerce website like amazon #hire ecommerce developers #hire app developers

How to Make a Website Like Amazon: Tech Stack, Costs, Features

E-commerce has completely changed the way people shop and is one of the biggest beneficiaries of the dot com boom since early 2000. Since the increased use of smartphones and cheap internet availability since 2015 the growth of the e-commerce industry is expected at a rapid pace.

Developing an e-commerce app requires extensive experience in coding. If you are looking to develop e-commerce applications like Amazon or eBay WebClues Infotech is the perfect company to guide you at every step including the Concept, Business Plan, Launch, Revenue Generation, and Support.

To know more about How to develop and the cost to develop e-commerce apps like Amazon, eBay, Flipkart, Myntra, etc. read our blog How to Make a Website Like Amazon: Tech Stack, Costs, Features

#create an website like amazon #cost to create ecommerce website like amazon #develop a website like amazon or ebay #build an ecommerce website like amazon

Ajay Kapoor

1625045880

Top MERN Stack Development Company in India

PixelCrayons: Get MERN stack development services from certified full stack developers having 5+ years of experience. You can also hire dedicated team as your team extension on hourly or full-time basis.

MERN stack includes the best JavaScript technologies. Our MERN stack web development company has expertise in all four of them that enables us to deliver optimum MERN stack development services.

Stay ahead of competition with our professional, tailor-made & enterprise-grade MERN Stack development services. Our MERN Stack development company India combines development expertise with modern frameworks and technologies to address critical needs of global clients across industries.

With 16+ years of domain expertise, 13800+ successful MERN Stack projects, & 6800+ happy customers, we have carved a niche in the MERN Stack development services.

Mern stack development company India

#mern stack companies #mern stack development company #mern stack development services #mern stack web development #mern stack web development company

How to create an app like Instagram and know how much it cost?

Instagram being the most popular Photo Sharing App available today, it’s no surprise that you would think of developing a social media app like Instagram for a particular niche target audience.

Developing an app like Instagram requires extensive experience in coding and the latest technology. If you are looking to develop a Social Media app like Instagram then WebClues Infotech is the perfect company to guide you at every step including the Concept, Business Plan, Launch, Revenue Generation, and Support.

To know more about how to develop Social Media app like Instagram and its cost of development read our blog How to Make a Website Like Amazon: Tech Stack, Costs, Features

#create an website like amazon #cost to create ecommerce website like amazon #develop a website like amazon or ebay #build an ecommerce website like amazon