Hệ thống Sưu tầm & Lưu trữ Kỷ niệm Lớp học - Class Memory Collection & Storage System
Memories Gacha System là một ứng dụng web cho phép học sinh thu thập và lưu trữ những khoảnh khắc kỷ niệm của lớp học thông qua cơ chế Gacha game độc đáo.
- Spring Boot 3.2.0 - Framework Java
- Maven - Dependency Management
- MySQL - Database
- Spring Data JPA - ORM
- Spring Security - Authentication & Authorization
- JWT - Token-based authentication
- React 18 - UI Library
- Vite - Build Tool
- React Router - Routing
- Axios - HTTP Client
GachaPhoto/
├── backend/ # Spring Boot Backend
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/com/memories/gacha/
│ │ │ │ ├── model/ # Entity classes
│ │ │ │ ├── repository/ # JPA Repositories
│ │ │ │ ├── service/ # Business logic
│ │ │ │ ├── controller/ # REST Controllers
│ │ │ │ └── config/ # Configuration
│ │ │ └── resources/
│ │ │ └── application.properties
│ │ └── test/
│ └── pom.xml
├── frontend/ # React Frontend
│ ├── src/
│ │ ├── components/ # React Components
│ │ ├── pages/ # Page Components
│ │ ├── App.jsx
│ │ └── main.jsx
│ ├── package.json
│ └── vite.config.js
├── database_schema.sql # MySQL Database Schema
└── README.md
- Java 17+
- Node.js 18+
- MySQL 8.0+
- Maven 3.6+
- Tạo database MySQL:
mysql -u root -p < database_schema.sql- Cấu hình database trong
backend/src/main/resources/application.properties:
spring.datasource.username=your_username
spring.datasource.password=your_password- Chạy Spring Boot:
cd backend
mvn spring-boot:runBackend sẽ chạy tại: http://localhost:8080
- Cài đặt dependencies:
cd frontend
npm install- Chạy development server:
npm run devFrontend sẽ chạy tại: http://localhost:5173
GET /api/users- Lấy danh sách usersGET /api/users/{id}- Lấy user theo IDGET /api/users/username/{username}- Lấy user theo username
GET /api/photos- Lấy danh sách photosGET /api/photos/active- Lấy photos đang activeGET /api/photos/{id}- Lấy photo theo IDGET /api/photos/rarity/{rarity}- Lấy photos theo rarity
GET /api/collections- Lấy danh sách collectionsGET /api/collections/{id}- Lấy collection theo ID
- ✅ Hệ thống Gacha (Quay đơn/Quay 10)
- ✅ Album Kỷ niệm với độ hiếm (C, R, SR, UR)
- ✅ Bộ sưu tập ảnh
- ✅ Tương tác xã hội (Like, Comment, Tag)
- ✅ Chợ giao dịch
- ✅ Nhiệm vụ hàng ngày
- ✅ Chức năng chuộc ảnh
MIT License
- Development Team