Ứng dụng backend phục vụ cho việc giải các bài toán về game theory và stable matching bằng Java sử dụng Springboot MVC và MOEA Framework
- github
- Java JDK 17
- Maven 3.8.3+
- Clone the repository (Clone repository này)
git clone https://github.com/suyttthideptrai/SS1_2023_StableMatchingSolver_Backend.git- Build the project (Build project)
mvn clean packageRun the built .jar file (Chạy file jar sau khi build xong)
java -jar target/stable-matching-solver-0.0.1-SNAPSHOT.jarhoặc chạy trực tiếp trên IDE (IntelliJ IDEA, Eclipse, Netbeans, ...) bằng cách chạy class StableMatchingSolverApplication.java
App sẽ được chạy ở local host cổng 8080 (http://localhost:8080) và có thể sử dụng các API sau:
- POST
/api/game-theory-solver - POST
/api/problem-result-insights/{sessionCode}
- POST
/api/stable-matching-solver - POST
/api/matching-problem-result-insights/{sessionCode}
Tìm hiểu thêm về các API endpoints tại class src.main.java.com.example.SS2_Backend.controller.HomeController.java
Vì vậy các khóa sau sẽ fork project này và tạo branch mới để làm việc thay vì tạo pull request trực tiếp lên branch main hiện tại.
- Fork project này
- Tạo branch mới (
git checkout -b extra-feature) - Commit thay đổi của bạn (
git commit -m 'Add extra feature') - Push lên branch (
git push origin extra-feature)