English | 简体中文
Approval System Backend is a refactoring of the legacy approval system, built with Spring Boot and Maven.
- Java 17 or higher
- MySQL 8.0+
- Maven 3.6+
- pre-commit
-
Clone the repository
git clone https://github.com/NJUPT-SAST/approval-system-backend.git cd approval-system-backend -
Install pre-commit hooks
# For Arch Linux sudo pacman -S pre-commit # For Pipx users (cross-platform) pipx install pre-commit # Install the hook pre-commit install
-
Build the project
mvn clean compile
-
Run the application
# Option 1: Direct run mvn spring-boot:run -pl approval-server # Option 2: Package and run mvn clean package java -jar approval-server/target/approval-server-*.jar
This project uses Pre-commit for code formatting. Run the following command before you commit to format your code:
pre-commit run --all-filesTip
If you encounter issues with pre-commit hooks, you can temporarily skip them using git commit --no-verify.
Pull requests and any feedback are welcome. For major changes, please open an issue first to discuss what you would like to change.
// TODO