Angular with PHP and JSON web tokens (JWT)
- 3.7
Brief Introduction
Create Angular application with authentication from scratch and integrate it with PHP backendDescription
Update: The whole Angular part of the course has been updated to use Observables, Subjects, and Angular Material.
This course will lead you through the step by step creation of an Angular application, which uses JSON Web Tokens (JWT) and gives an opportunity to log in and log out users. You will also understand how to integrate client-side Angular with server-side PHP for complete application development.
It is suitable for beginning to intermediate students who would like to create practical applications and prefer a hands-on approach of teaching.
During the course you will learn how to use in practice:
template-driven model forms
common user models and bindings using ngModel and interfaces
dependency injection of services and external libraries
JWT (JSON Web Tokens) in order to create and use for authentication service, both in PHP and Angular
guards to protect URL routes
HttpClient module for interaction with get and post requests
Observables and Behaviour subject
Angular Material Snackbar for displaying flash messages
You can follow along and try the examples alongside.
The course project files are updated in order to properly unsubscribe from services and avoid potential memory leaks.
Latest Update: Added explanation and demonstration of JWT refresh tokens
Requirements
- Requirements
- have Angular framework installed