Skip to content

This application is a demonstration of JSON Web Token (JWT) functionality, built using Angular, Tailwind CSS, and Spring Boot.

Notifications You must be signed in to change notification settings

sacaaa/jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Project Overview

This is a demo application showcasing the functionality of JSON Web Tokens (JWT) for authentication and authorization. Built with Angular (frontend), Tailwind CSS (styling), and Spring Boot (backend).

Features

  • JWT Functionality:
    • Token-based user authentication.
    • Validation of JWTs for secure access to protected routes.
  • "Remember Me" Functionality:
    • Sessions handled using both Local Storage and Session Storage for enhanced user experience.
  • Responsive UI:
    • Built with Tailwind CSS for mobile-first, fully responsive design.

How to Run

Backend (Spring Boot)

  1. Navigate to the backend directory.
  2. Use Maven to build and run the application:
    mvn spring-boot:run
  3. The server will start on http://localhost:8080 by default.

Frontend (Angular)

  1. Navigate to the frontend directory.
  2. Install dependencies (if not already installed):
    npm install
  3. Start the Angular development server:
    ng serve
  4. Access the application at http://localhost:4200.

Additional Notes

  • Remember Me: When enabled, the application securely stores session tokens in either Local Storage or Session Storage based on user preference.
  • JWT Functionality: The backend issues JWTs upon successful login, which the frontend uses for secure communication with protected endpoints.

About

This application is a demonstration of JSON Web Token (JWT) functionality, built using Angular, Tailwind CSS, and Spring Boot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published