Simple blogger application using Spring Boot(v3) with Java(v17) together with MySQL Database.
- RESTFul API
- Practice Spring Boot JPA with ManyToOne and OneToMany Relationship.
- Using Spring Boot Security with JwtAuthentication strategy.
- Fully Documenteded using Postman documentation and OpenAPI(Swagger).
The application was created with maven configuration.
- OpenJDK, can be installed at https://aws.amazon.com/corretto.
- (Optional) Docker installed.
- To be able to run
docker-compose.yml
file in order to install MySQL Database create a file nameddb_root_password.txt
at the root of the project and fill it with the password then run the commanddocker-compose up -d
. - NOTE: if you want to use diffrent database that already installed in your mechine, you can skip this and configure the env variables accordinly.
- To be able to run
- Go to
resources
folder and create or rename theapplication-secrets.properties.example
to justapplication-secrets.properties
. - Fill all the required variables in
application-secrets.properties
.
To run the application open a terminal at the root of the project and run the command:
mvn clean spring-boot:run
, if you don't have maven installed globaly, use the local script./mvnw clean spring-boot:run
.