This is a demo of using JSON Web Tokens in order to implement login and registration with AngularJS.
To get started, do the following:
- Install the necessary dependencies (npm install)
- Start your mongoDB server
- 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
The features of interest include:
- Verifying authentication using JWTs
- Restricting certain Angular routes to authenticated users only