- This is a simple blog backend application built with Spring Boot and Spring Data JPA using Postgres. It provides RESTful APIs for creating, reading, updating, and deleting blog posts.
./gradlew bootRun
psql postgres # for MacOS
sudo -u postgres psql postgres # for Linux
CREATE DATABASE blog;
CREATE USER blog_user WITH ENCRYPTED PASSWORD 'blog_password';
GRANT ALL PRIVILEGES ON DATABASE blog TO blog_user;
create a new user
get all articles (default page size 10) available filters
-/articles?tag=stocks
-/articles?author=asddsd
-/articles?page=3&size=10
create a new article
edit an article
get all comments of an article