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).
- 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.
- Navigate to the backend directory.
- Use Maven to build and run the application:
mvn spring-boot:run
- The server will start on
http://localhost:8080by default.
- Navigate to the frontend directory.
- Install dependencies (if not already installed):
npm install
- Start the Angular development server:
ng serve
- Access the application at
http://localhost:4200.
- 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.