This project is an Angular-based authentication system using JSON Web Tokens (JWT). It provides a robust and secure way of handling user authentication in Angular applications.
- User Registration: Allows new users to create an account.
- User Login: Enables users to log in to the application.
- Authenticated User Data Retrieval: Displays data of the authenticated user.
- Toasts for Notifications: Uses a toaster component for displaying messages.
- Reactive Forms: Utilizes Angular Reactive Forms for handling form inputs.
- Bootstrap Styling: Styled with Bootstrap for a responsive and modern UI.
- HTTP Interceptor: Includes an interceptor to add
withCredentials
to all backend requests.
- Node.js
- Angular CLI
-
Clone the repository:
git clone https://github.com/dev-ambinintsoa/angular-jwt-authentication-system.git
-
Navigate to the project directory:
cd angular-jwt-authentication-system
-
Install dependencies:
npm install
-
Run the application:
ng serve
-
Open your browser and navigate to
http://localhost:4200
.
- Navigate to the Registration page.
- Fill in the required fields.
- Submit the form to create a new user account.
- Navigate to the Login page.
- Enter your credentials.
- Submit the form to log in.
- Once logged in, navigate to the Authenticated User component to view your data.
For any queries or contributions, feel free to connect with me:
- Angular Team for the amazing framework.
- Bootstrap for the UI components.
- Community contributors and everyone who supports this project.