Skip to content

ivandi1980/mean-stack-authentication-authorization

 
 

Repository files navigation

MEAN stack Authentication and Authorization example

Build MEAN stack JWT Authentication & Authorization example with HttpOnly Cookie and JWT.

Flow for User Registration and User Login

For JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:

  • POST api/auth/signup for User Registration
  • POST api/auth/signin for User Login
  • POST api/auth/signout for User Logout

You can take a look at following flow to have an overview of Requests and Responses:

mean-stack-authentication-authorization-flow

For more detail, please visit the tutorial:

MEAN stack Authentication & Authorization with Angular 13

Run

Node.js Server

Run node server.js for a dev server exporting API at http://localhost:8080/.

Angular Client

Run ng serve --port 8081. Navigate to http://localhost:8081/.

More practice

Fullstack with Node:

Angular + Node Express + MySQL example

Angular + Node Express + PostgreSQL example

Angular + Node Express + MongoDB example

Angular + Node Express: File upload example

Serverless with Firebase:

Angular Firebase CRUD with Realtime DataBase | AngularFireDatabase

Angular Firestore CRUD example with AngularFireStore

Angular Firebase Storage: File Upload/Display/Delete example

Integration (run back-end & front-end on same server/port)

How to integrate Angular with Node Restful Services

About

MEAN stack Authentication and Authorization example - Registration, Login, Logout with JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 59.2%
  • JavaScript 19.1%
  • HTML 18.3%
  • CSS 3.4%