-
This application demonstrates Json Web Token based authentication with Node as a backend and an Angluar front end.
-
In order to demo app - pull down repo. Launch client ( same app on one port ) - and Server with node server.js ( port 5100 )
Client => https://node-jwt.herokuapp.com/
See Client branch
#### Service => https://stormy-beyond-9592.herokuapp.com/ See Server branch
-
TODO: Refactor the application.js
-
Errors Are logged to the console.
Login with: Username: testuser@gmail.com / Password: 1234
- User is not saved to db:
TODO:
- Add mongoose.
Great Links on JWT with angular. Why write a readme when they explain things with much more clarity and detail. Read on:
https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
http://code.tutsplus.com/tutorials/token-based-authentication-with-angularjs-nodejs--cms-22543