A simple Blog Web Application built using Spring Boot, following clean architecture with support for creating, reading, updating, and deleting (CRUD) blog posts, users, categories, and comments.
- Create, update, delete users
- Add and manage blog posts
- Categorize posts
- Comment on posts
- RESTful API using Spring Boot
- Entity to DTO mapping with ModelMapper
- Java
- Spring Boot
- Spring Data JPA
- Hibernate
- ModelMapper
- PostgreSQL
- Postman (for API testing)
- POST /home/api/user/create
- GET /home/api/user/get/{id}
- PUT /home/api/user/update/{id}
- DELETE /home/api/user/delete/{id}
- POST /home/api/Category/creates
- GET /home/api/Category/get/{id}
- PUT /home/api/Category/updates/{id}
- GET /home/api/Category/getAll
- DELETE /home/api/Category/delete/{id}
- POST /home/api/user/{userId}/category/{categoryId}/post
- GET /home/api/post/{postId}
- PUT /home/api/post/{postId}
- GET /home/api/post
- GET /home/api/user/{userId}/post
- GET /home/api/category/{categoryId}/post
- DELETE /home/api/post/{postId}
- POST /home/api/post/{postId}/comments
- DELETE /home/api/post/comments/{commentId}
-
Clone the repo
git clone https://github.com/Rajj23/spring-boot-blog-app.git -
Run the application
./mvnw spring-boot:run -
Test APIs with Postman
This project is licensed under the MIT License.