EBook is a project aimed at share Ebook using Spring Boot in Java.
- Clone the repository:
https://github.com/Kruzk02/Ebook.git
. - Navigate to the project directory: cd
Ebook
. - Start the project using Maven:
mvn clean spring-boot:run
. - Access the API at http://localhost:8080.
Once the application is running, you can use tools like Postman or curl to interact with the API endpoints. Here's an example:
- Create a new user:
Send a POST request to
/api/auth/register
with the following JSON payload:{ "username": "myname", "password": "password123", "email": "[email protected]" }
- Authenticate the user:
Send a POST request to
/api/auth/login
with the following JSON payload to receive a JWT token:{ "username": "myname", "password": "password123" }
- Use the generated JWT token to access protected endpoints.
- Redis configuration: Configure redis connection properties in
RedisConfig.java
. - Async configuration: Configure async properties in
AsyncConfig.java
. - Security configuration: Customize security settings in
SecurityConfig.java
.
Contributions are welcome! Please fork the repository and create a pull request with your changes.