/angular_jwt

Primary LanguageJavaScript

angular_jwt

This is a demo of using JSON Web Tokens in order to implement login and registration with AngularJS.

Getting started

To get started, do the following:

  1. Install the necessary dependencies (npm install)
  2. Start your mongoDB server
  3. Start your nodeserver

Finally, cd into the client directory and start a simple-http server

client $ http-server

Navigate to localhost:8080 and you should see the login and registration page

Features

The features of interest include:

  1. Verifying authentication using JWTs
  2. Restricting certain Angular routes to authenticated users only