# store **Repository Path**: junjun_com/store ## Basic Information - **Project Name**: store - **Description**: 基于SpringBoot的商城项目,实现了用户注册登录、商品浏览、购物车管理、地址管理、订单创建等核心电商功能。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2025-06-27 - **Last Updated**: 2026-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: SpringBoot ## README # Online Store Project ## Project Introduction This is a SpringBoot-based online store project that implements core e-commerce features including user registration and login, product browsing, shopping cart management, address management, and order creation. ## Functional Modules - **User System**: Registration, login, password change, personal information management - **Product System**: Product display, hot product list - **Shopping Cart System**: Add product to cart, modify product quantity in cart - **Address Management**: Add address, set default address, delete address - **Order System**: Create order, track order status ## Technology Stack - SpringBoot - MyBatis - MySQL - Bootstrap 3 - Font Awesome - RESTful API Design ## Directory Structure - `src/main/java/com/cy/store` - Java source code - `src/main/resources` - Static resource files - `src/main/resources/mapper` - MyBatis mapping files - `src/main/resources/static/web` - Front-end pages ## Quick Start ### 1. Clone the Project ```bash git clone [your repository URL] ``` ### 2. Create Database ```sql CREATE DATABASE IF NOT EXISTS store DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ``` ### 3. Configure Database Set up your database connection information in `application.properties` ### 4. Run the Project ```bash mvn spring-boot:run ``` ## API Documentation ### User-related - POST `/users/reg` - User registration - POST `/users/login` - User login - POST `/users/change_password` - Change password - POST `/users/change_info` - Change personal information - POST `/users/change_avatar` - Change avatar ### Product-related - GET `/products/hot_list` - Retrieve hot product list - GET `/products/{id}/details` - Retrieve product details ### Cart-related - POST `/carts/add_to_cart` - Add product to cart - GET `/carts` - Retrieve cart list - POST `/carts/{cid}/num/add` - Update product quantity in cart - GET `/carts/list` - Retrieve cart info based on product ID ### Address-related - POST `/addresses/add_new_address` - Add new address - GET `/addresses` - Retrieve all user addresses - POST `/addresses/{aid}/set_default` - Set default address - POST `/addresses/{aid}/delete` - Delete address ### Order-related - POST `/orders/create` - Create order ## Front-end Pages - `index.html` - Home page - `login.html` - Login page - `register.html` - Registration page - `product.html` - Product details page - `cart.html` - Shopping cart page - `address.html` - Address management page - `orders.html` - Orders list page - `orderConfirm.html` - Order confirmation page ## Contribution Guide 1. Fork the repository 2. Create your feature branch (`git checkout -b feature/your-feature`) 3. Commit your changes (`git commit -m "Add some feature"`) 4. Push your branch (`git push origin feature/your-feature`) 5. Submit a Pull Request ## License This project uses the MIT License. Please refer to the LICENSE file for details.