Spring Boot Application, in which the user can calculate the amount of a given insurance, and then purchase it and print the policy in PDF form. When new user registers an account, the application sends an e-mail verification link necessary to use its functionality.
- Technology : Java 11, Spring (Boot, MVC, Data JPA) , Lombok, JUnit 5, Mockito, Maven
- Application Servicer : Apache Tomcat Server
- Database : MySQL Database
The source code can be checked out to your local and then build and run the application either from your IDE after importing to it as a maven project, or just from a command line. Follow these steps for the command-line option:
- Invoke
git clone https://github.com/Tomasz3976/insurance-company.git
- Invoke
cd insurance-company
- Create Database
CREATE DATABASE insurancecompanydb;
- Create Database
CREATE DATABASE insurancecompanytestdb;
- Set Username and Password in the
main/resources/application.yml
file - Set Username and Password in the
test/resources/application.yml
file - Invoke
mvn clean install
- Invoke
mvn spring-boot:run
- The server is running on localhost:8080
Role | Username | Password |
---|---|---|
User | user | user |
Manager | manager | manager |
Admin | admin | admin |
To explore documentation, run the application and go to http://localhost:8080/swagger-ui.html