That's truly desperate to see my own tech debt.
- DB redesign needed. Take
Reservation
for example, there are 3 ids in one table, where one Id could relate to the others. It's ok for a small project, but when it coming to a bigger scale, the memory cost would be ridiculous.- FP reformat needed. Xiao, you didn't even use
@Builder
in the whole project, how could you graduate?- SQL script needed.
- Docker! Docker! Docker! I'm telling you No one could run this project locally.
- build postgres:ocpp in docker
docker compose up
- Start service and dependencies
./gradlew startDependencies
- Junit tests
./gradlew test
- Build docker image
./gradlew dockerBuild
Role | Software |
---|---|
Back-end Development Framework | Spring Boot |
Programming Language | Java 11 |
Web Engine | Thymeleaf |
Integrated Development Environment (IDE) | Intellij IDEA (Optional) |
Web Deployment | Amazon Elastic Beanstalk |
Open-source Database | Amazon RDS MySQL / MySQL |
- Create local database
ocpp
with MySQL - Attach the URL, username, and password in
/src/main/resources/application.properties
- Run
CentralSystemApplication
- Create cloud database with Amazon RDS MySQL or Aurora
- Attach the URL, username, and password in
/src/main/resources/application.properties
- Build jar file with Maven deploy,
target/csms-0.0.1-SNAPSHOT.jar
- Upload the jar on Amazon Elastic Beanstalk
- Open provided website