-
Notifications
You must be signed in to change notification settings - Fork 1
Creating AngularJS, Node and Token Authentication
Pritesh Patel edited this page Apr 9, 2019
·
3 revisions
https://app.pluralsight.com/library/courses/creating-apps-angular-node-token-authentication/
- Growth in mobile app usage led to session/cookie-based authentication no longer being the best option
- For mobile-ready Web API
- Technology covered - authentication framework Sails, Yeoman, JWTs
- Concepts - OAuth, Email validation, CORS no longer an issue with JWTs
- What is a JWT? - works well with mobile. Consists of header, payload and signature. No database lookup require
- Pre-requisites - Node.js,
- install Yeoman, bower, grunt, yeoman angular generator
- create application using yeoman angular generator
- run
grunt serve
to launch template application - template includes karma, jasmine and phantomjs - for more info see pluralsight 'Angular and Node.js' course by Alexander Zanfir
-
yo angular:view register
- can also be used to create controllers, services etc.
- install ui-router (bower component) and configure state for
/register
- Bootstrap themes from Bootswatch and theme from Bootsnipp
- use to highlight current page in navigation