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.
- 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.
Before running the application, ensure you have the following tools installed:
- Node.js (v18 or later)
- Angular CLI (v18 or later)
git clone https://github.com/mahesheu/angular18-basic-app-jwt.git
cd angular18-basic-app-jwt- Installing Dependencies: The
npm installsection 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 servecommand is included to show how to run the app locally. - Build Application:
ng build --prodcommand for creating a production build is also mentioned.