Skip to content

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).

License

Notifications You must be signed in to change notification settings

DFanso/spring-boot-jwt-auth-api

Repository files navigation

Spring Boot JWT Auth API 🌐🧑‍💻

GitHub forks   GitHub license   GitHub stars  

GitHub Workflow Status  

GitHub last commit  

Overview

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).

Features

  • 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.

Technologies

Spring Boot Java JWT Maven H2 Database Postgres Swagger Jenkins Docker GitHub

Getting Started

Prerequisites

  • Java 21 or higher
  • Maven 3.6.3 or higher

Installation

  1. Clone the repository:
    git clone https://github.com/DFanso/spring-boot-jwt-auth-api.git
  2. Navigate to the project directory:
    cd spring-boot-jwt-auth-api
  3. Build the project using Maven:
    mvn clean install
  4. Run the application:
    mvn spring-boot:run

Usage

  • Access the application at http://localhost:8080.
  • Access Swagger Api Doc at http://localhost:8080/swagger-ui/index.html

API Endpoints

  • 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.

Contributing

Contributions are welcome! Please fork the repository and create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact


Happy coding! 🚀

About

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).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published