Skip to content

This is a sample that shows how to add authentication to an Angular 2 (ng2) app

License

Notifications You must be signed in to change notification settings

ChrisMurphy/angular2-authentication-sample

 
 

Repository files navigation

Angular 2: Authentication sample.

This sample shows how to create an angular 2 app that:

  • Has lots of different routes
  • Performs authentication with JWTs
  • Calls APIs authenticated and not.
  • Extends the RouterOutlet for route pipeline changes.

You can learn more about how it works in this blogpost

Running it

Clone this repository as well as the server for this example.

First, run the server app in the port 3001.

Then, run npm install on this project and run npm startwatch to start the app. Then just navigate to http://localhost:3000 💥

About

This is a sample that shows how to add authentication to an Angular 2 (ng2) app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.8%
  • TypeScript 5.6%
  • HTML 2.5%
  • CSS 0.1%