This project is a simple web application based on Spring Boot, that implements a small blog.
- Adding posts with pictures and tags, editing and deleting them
- Leaving comments under the post
- Liking or disliking posts
- Looking for posts by tag
- JDK 21
- Gradle 8.13 (optional)
Using docker environment.
First of all build executable jar file with gradle:
./gradlew clean test bootJar
From the project folder '/docker' run the command:
docker compose upBlog will start on http://localhost:8080/blog address.
For this option yor should have your own postgres 17 db.
Export environment variables required for connection to the database or change it directly in the file application.properties.
Build application using gradle:
./gradlew clean test bootJar
Start your database and then start blog app using
java -jar blog.jar
or run executable jar from console directly
./blog.jar