Skip to content

TOBE-TOGETHER/tobe-shop

Repository files navigation

TobeShop

This is a shopping website project for study purposes, developed with the assistance of Cursor + MCP servers, no one-line manual code.

Technical Stack

  • Server-end: Golang + Gin
  • Front-end: React + Material-UI
  • Database: SQLite (can be easily migrated to MySQL/PostgreSQL for production)

Features

There are two types of users using this website:

  • Buyers: Can view all products and shops without login and place orders online. Payments are processed through Alipay (third-party payment gateway).
  • Sellers/Merchants: Need to register an account to manage their shops, products, orders, and invoices.

The website supports both Chinese and English languages.

Main Pages & Functions

Buyer Pages

  • Home page: Displays popular products, recommended products, and featured shops
  • Product listing page: Browse all available products with filtering and sorting options
  • Product details page: Detailed view of a product with specifications and purchasing options
  • Shopping cart page: Manage selected items before checkout
  • Checkout page: Complete the purchase with shipping and payment information
  • Order tracking page: Track the status of placed orders

Authentication

  • Sign up page: Register as a new buyer or seller
  • Login page: Authentication for registered users

Seller Management Pages

  • Product Management
    • Product list page: View, edit, and manage all products
    • Product details page: View detailed product information
    • Product creation page: Add new products to the store
  • Order Management
    • Order list page: View and manage all incoming orders
    • Order detail page: Process specific orders, update status
  • Invoice Management
    • Invoice list page: View all financial transactions
    • Invoice details page: View detailed invoice information

Getting Started

Prerequisites

  • Go 1.16+ for backend
  • Node.js 14+ and npm/yarn for frontend
  • Docker and Docker Compose (for containerized setup)

Installation

Traditional Setup

Backend Setup
cd tobe_shop/server
go mod tidy
go run main.go

The backend server will run on http://localhost:8080

Frontend Setup
cd tobe_shop/client
npm install
npm start

The frontend development server will run on http://localhost:3000

License

This project is for educational purposes only.

Screenshots

TobeShop _ Next-Gen Shopping TobeShop _ Next-Gen Shopping (7) TobeShop _ Next-Gen Shopping (6) TobeShop _ Next-Gen Shopping (4) TobeShop _ Next-Gen Shopping (2) TobeShop _ Next-Gen Shopping (1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages