Simple blog with Spring MVC.
-
Admin Role: As an admin, you have the power to edit, remove, and delete any posts and comments. You can also create new posts and comments.
-
User Role: Users can create new posts and comments as well. However, they can only edit or delete their own posts and comments.
-
User Authentication: Secure your blog with Spring Security, providing both admin and user roles for different levels of access.
-
Database Persistence: Using Spring Data JPA, your blog content will be stored in a PostgreSQL database, ensuring data durability and reliability.
-
Soft Delete: Benefit from a soft delete feature, allowing for content removal without permanent data loss.
-
Rich Text Editing: We've integrated CKEditor, a powerful and user-friendly rich text editor, allowing you to create visually appealing and well-formatted blog posts.
-
Friendly URLs: Each blog post generates a unique slug, making your URLs clean and search engine friendly.
-
Validation: Input validation is taken care of, ensuring that your blog content remains consistent and error-free.
-
Template: The project utilizes the Clean Blog theme from Start Bootstrap to provide a clean and attractive user interface.
- Admin:
admin@admin.com
/password
- User:
user@user.com
/password
Follow these steps to get the project up and running:
- Clone the Repository
git clone https://github.com/anilozmen/spring-boot-mvc-blog.git
cd spring-boot-mvc-blog
-
Database Configuration Make sure you have PostgreSQL installed and create a new database. Update the
application.yml
file with your database credentials. -
Run the Application
mvn spring-boot:run