An open API service indexing awesome lists of open source software.

https://github.com/abdelrahman998/blog-application

Designed and implemented a feature-rich Blog REST API, empowering users with seamless post and comment management, robust user authentication, and role-based security.
https://github.com/abdelrahman998/blog-application

java restful-api spring-boot springdata-jpa

Last synced: 3 months ago
JSON representation

Designed and implemented a feature-rich Blog REST API, empowering users with seamless post and comment management, robust user authentication, and role-based security.

Awesome Lists containing this project

README

        

# Blog Application

This is a Spring Boot application for a blogging platform. It provides RESTful APIs for managing blog posts, user authentication, and authorization.

## Technologies Used

- Java
- Spring Boot
- Spring Security
- Hibernate
- MySQL
- Maven

## Getting Started

### Prerequisites

- Java 11 or higher
- Maven
- MySQL

### Installation

1. Clone the repository:
```sh
git clone https://github.com/abdelrahman998/spring-boot-blog.git
cd spring-boot-blog
```

2. Configure the MySQL database:
- Create a database named `blog`.
- Update the database configuration in `src/main/resources/application.properties`:
```ini
spring.datasource.url=datasource_url_here
spring.datasource.username=your_username_here
spring.datasource.password=your_password_here
```

3. Build the project:
```sh
mvn clean install
```

4. Run the application:
```sh
mvn spring-boot:run
```

## Security

This application uses JWT for authentication and authorization.