This is the stand-alone website realized for the software security project implemented in java throughout Spring Boot framework.
By default, the project is configured to use the MySQL database, so you need to create the db as shown below:
Create the container
docker run --name=mysql_chirpchat -e MYSQL_ROOT_PASSWORD=abc123 -e MYSQL_DATABASE=chirpchat -p 3307:3306 -d mysql
⚠️ Important : You need to run the MySQL database before starting the application, otherwise the application couldn't lauch it correctly.
Clone the project
git clone https://github.com/Femure/software_security_projectInstall Apache Maven : https://maven.apache.org/download.cgi
Installation step : https://maven.apache.org/install.html
Once Apache Maven successfully installed.
⚠️ Important : You need to create two terminals to run theand the
at the same time.
For the Frontend
cd software_security_project/FrontendBuild the Frontend
mvn clean verifyStart the Frontend app
mvn spring-boot:runFor the Backend
cd software_security_project/Backend
mvn clean verify spring-boot:runYou can also use any other IDE you prefer such as Visual Studio Code, IntelliJ...
External ressource for deployement with VSCode : https://code.visualstudio.com/docs/java/java-spring-boot
For example with VSCode, it is very easy to lauch the app. Thanks to Spring Boot Dashboard, you can run the Frontend and the Backend at the same time, as shown below :
⚠️ Important : For both deployments, you will need to have Java SE Development Kit 19. If you have a version below, please download it to avoid configuration conflicts. You can download it here : https://www.oracle.com/java/technologies/javase/jdk19-archive-downloads.html
Once deployed, you can access the app at : http://localhost:8090
⚠️ Important : If you have an antivirus on your computer, it is possible that when you want to use the application, the email service does not work because it is blocked by your antivirus. So, you will need to allow SMTP protocole for outbound traffic. It can be also blocked by the configuration of your network like for example by your proxy.
For example, if you have Avast Antivirus, you can disabled scan outbound emails by doing this : Open Avast Antivirus > Settings > Protection > Core Shields > Scroll down and click on Mail Shield > Deselect 🔳 Scan outbound emails(SMTP).
