A skeleton application with basic user CRUD and auth features - developed using React, Node, Express and MongoDB.
- Node (13.12.0)
- NPM (6.14.4) or Yarn (1.22.4)
- MongoDB (4.2.0)
- Make sure MongoDB is running on your system
- Clone this repository
- Open command line in the cloned folder,
- To install dependencies, run
npm install
oryarn
- To run the application for development, run
npm run development
oryarn development
- To install dependencies, run
- Open localhost:3000 in the browser
- 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
- Adding shops to the marketplace
- 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