This project is a Spring Boot application with JWT authentication. It provides a robust and secure API for authentication and authorization using JSON Web Tokens (JWT).
- Spring Boot - for building the backend application.
- JWT - for secure authentication and authorization.
- Spring Security - to secure the application.
- Maven - for dependency management.
- Swagger - for API Documentation.
- H2 Database - in-memory database for development and testing.
- Postgres Database - Sequel database for persistence data.
- Java 21 or higher
- Maven 3.6.3 or higher
- Clone the repository:
git clone https://github.com/DFanso/spring-boot-jwt-auth-api.git 
- Navigate to the project directory:
cd spring-boot-jwt-auth-api
- Build the project using Maven:
mvn clean install 
- Run the application:
mvn spring-boot:run 
- Access the application at http://localhost:8080.
- Access Swagger Api Doc at http://localhost:8080/swagger-ui/index.html
- POST /api/v1/auth/register- Register a new user.
- POST /api/v1/auth/login- Authenticate a user and get a token.
- GET /api/v1/auth/profile- Get user's profile.
Contributions are welcome! Please fork the repository and create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub: DFanso
Happy coding! 🚀