# mes-system **Repository Path**: kerry008/mes-system ## Basic Information - **Project Name**: mes-system - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-22 - **Last Updated**: 2026-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MES System A full-stack manufacturing execution system (MES) built with Vue.js and Spring Boot. ## Project Overview MES System is a web-based manufacturing execution system that provides user authentication (login/registration) functionality. The system uses a modern architecture with a Vue.js frontend and Spring Boot backend. ## Technology Stack ### Frontend - Vue.js (via Vue CLI) - Webpack - Babel (JavaScript transpilation) ### Backend - Java - Spring Boot - MyBatis (ORM framework) - MySQL Database ## Project Structure ``` mes-system/ ├── backend/ # Spring Boot backend │ ├── src/ │ │ └── main/ │ │ ├── java/com/mes/ │ │ │ ├── MesApplication.java # Main application entry │ │ │ ├── controller/ │ │ │ │ └── LoginController.java # Login/Register API │ │ │ ├── dto/ # Data transfer objects │ │ │ │ ├── LoginRequest.java │ │ │ │ ├── LoginResponse.java │ │ │ │ └── RegisterRequest.java │ │ │ ├── entity/ │ │ │ │ └── User.java # User entity │ │ │ ├── mapper/ │ │ │ │ └── UserMapper.java # MyBatis mapper │ │ │ └── service/ │ │ │ └── UserService.java # Business logic │ │ └── resources/ │ │ ├── application.yml # Application config │ │ └── mapper/ │ │ └── UserMapper.xml # MyBatis XML mapper │ ├── pom.xml # Maven dependencies │ ├── init.sql # Database initialization │ └── add_email_column.sql # Database migration ├── node_modules/ # Frontend dependencies └── (frontend source code) ``` ## Features - **User Registration**: New users can register with username, password, real name, and email - **User Login**: Secure authentication with token-based session management - **RESTful API**: Clean API design for frontend-backend communication - **Cross-Origin Support**: Enabled CORS for frontend-backend integration ## API Endpoints | Method | Endpoint | Description | |--------|----------|-------------| | POST | `/login` | User login | | POST | `/register` | User registration | | GET | `/test` | Test endpoint | ## Database The system uses MySQL with the following main tables: - **user**: Stores user information (id, username, password, realName, email) ### Initialization Run `init.sql` to create the initial database schema. Use `add_email_column.sql` for database migrations if needed. ## Getting Started ### Prerequisites - JDK 8 or higher - Maven - Node.js and npm - MySQL 5.7 or higher ### Backend Setup 1. Configure database connection in `backend/src/main/resources/application.yml` 2. Initialize database: ```bash mysql -u root -p < backend/init.sql ``` 3. Build and run the backend: ```bash cd backend mvn clean install mvn spring-boot:run ``` The backend will start on `http://localhost:8080` (default port). ### Frontend Setup ```bash # Install dependencies (if not already installed) npm install # Start development server npm run serve # Build for production npm run build ``` ## License This project is for educational and development purposes.