Skip to content

mahesheu/angular18-basic-app-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Angular 18 App with Authentication

This repository contains a simple Angular 18 application demonstrating basic authentication and route guarding functionality. The app features a login page, authentication guard, and a protected dashboard view that only authenticated users can access.

Features

  • Login Page: Users can input their credentials to log in.
  • Authentication Guard: Routes like the dashboard are protected by an authentication guard.
  • Dashboard: A protected page accessible only by authenticated users.

Prerequisites

Before running the application, ensure you have the following tools installed:

  • Node.js (v18 or later)
  • Angular CLI (v18 or later)

Setup Instructions

1. Clone the Repository

git clone https://github.com/mahesheu/angular18-basic-app-jwt.git
cd angular18-basic-app-jwt

Key Points:

  • Installing Dependencies: The npm install section is highlighted clearly to guide users to install dependencies after cloning the repository.
  • Getting Started: Give your API_URL in auth.service.ts.
  • Serve Application: The ng serve command is included to show how to run the app locally.
  • Build Application: ng build --prod command for creating a production build is also mentioned.

About

A basic Angular 18 skeleton app implementing JWT-based authentication. Features include a login page, authentication guard, and a protected dashboard accessible only by authenticated users. This template demonstrates how to set up a simple Angular app with JWT authentication and route protection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors