Utilized Java, Spring Boot, and MySQL to develop an online forum that allows users to post and filter messages by hashtags and users. Implemented CRUD operations and demonstrated entity relationships, such as @ManyToMany and @OneToMany in Spring Boot. Integrated with an external SQL database, created REST APIs, and ensured 100% test coverage on methods using JUnit and Mockito. Built a simple UI with JavaScript, HTML, and CSS
- Make sure you have docker installed locally https://www.docker.com/get-started/
- Make sure
spring.datasource.url=jdbc:mysql://mysql:3306/spit-dbis added to application.properties - Remove or comment out
volumes:formysqlcontainer indocker-compose.yamlif you do not care to persist data across sessions. - Run
mvn clean install packageto generate target jar file - Run
docker-compose buildto build docker image - Run
docker-compose upto run application with docker
