Welcome to the Spring Boot Blog Application — a full-featured, secure blog platform built with Java Spring Boot and Thymeleaf. This project provides a seamless and user-friendly experience for creating, reading, updating, and deleting blog posts in a clean, modern web interface.
- CRUD Operations: Users can create, read, update, and delete blog posts.
- MVC Architecture: Designed using Model View Controller (MVC) for structured and maintainable code.
- Secure Access: Integration of Spring Security for user authentication and authorization.
- In-Memory Database: Uses H2 database for easy setup and testing.
- Responsive UI: Built with Thymeleaf for dynamic content rendering.
Take a quick tour of the application to see how it works:
-
Clone the repository: bash git clone https://github.com/PatienceMugabo/Webtech_mid.git cd spring-boot-blog
-
Run the application: bash ./mvnw spring-boot:run
-
Access the application: Open your browser and navigate to http://localhost:8080.
- Java Spring Boot: For building and running the application.
- Thymeleaf: Templating engine for rendering views.
- Spring Data JPA: Manages data with JPA repositories.
- H2 Database: Lightweight, in-memory database for quick testing.
- Spring Security: Ensures secure access to the application.
The application runs on an H2 database by default. You can configure it by editing src/main/resources/application.yml.
This application uses Spring Security for authentication. Only registered users can create or edit posts, while anyone can view them. Passwords are stored securely using bcrypt hashing.