Skip to content

thanhtrungit25/mern-marketplace

Repository files navigation

MERN Skeleton

A skeleton application with basic user CRUD and auth features - developed using React, Node, Express and MongoDB.

MERN Skeleton

What you need to run this code

  1. Node (13.12.0)
  2. NPM (6.14.4) or Yarn (1.22.4)
  3. MongoDB (4.2.0)

How to run this code

  1. Make sure MongoDB is running on your system
  2. Clone this repository
  3. Open command line in the cloned folder,
    • To install dependencies, run npm install or yarn
    • To run the application for development, run npm run development or yarn development
  4. Open localhost:3000 in the browser

Features

  • Users with seller accounts #feature @trungdg 2021-05-15
    • Update the user model
    • Edit Profile view
    • Add a MY SHOPS link to the menu that will only by visible to sellers
  • Shop management
    • Adding shops to the marketplace
      • Defining a shop model
      • Creating a new shop
        • The create shop API
        • Test create shop API
        • Load image API for specific shop
      • Listing all shops
        • Listing all shops API
        • fetch method on frontend to request to API
        • React component to display the list of shops
      • Listing shops by owner
      • Displaying a shop
      • Editing a shop
      • Deleting a shop
  • Product management
    • Create product model
    • Create a new product
      • Create product API
      • New Product page
    • Listing products
      • The products by shop API
      • Products component for buyers
      • MyProducts component for owners
        • Deleting a product
        • Editing a product
      • Displaying a product
      • Listing product suggestions
        • Latest products API
        • Related products API
        • Suggestions component
    • Product search by name and category
      • The categories API
      • The search products API
      • The Search component
      • The Categories component
    • Implementing shopping cart
      • Adding to the cart
      • Cart icon in the menu
      • The Cart view
      • The CartItems component
        • Modifying quantity
        • Removing items
        • Showing the total price
        • Option to checkout
      • Using stripe for payments
        • Add StripeConnect component
        • Send code receive from client callback to server API and send request to oath token to receive token and update to user model

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published