An example of how to combine angular and sails with JWT authentication
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api
assets
config
tasks
views
.gitignore
.sailsrc
Gruntfile.js
README.md
app.js
package.json

README.md

Angular Messages

Angular Messages is a demo application to show how to implement JWT authentication with a Sails backend and an Angular frontend. Read full article

If you want to try it, you need to do the following:

Install the latest sails beta if you don't have it:

$ sudo npm install -g sails@beta

Then, inside this app folder:

$ npm install
$ sails lift

Register yourself and write some messages.

TODO:

  • Socket.io integration.
  • Maybe different levels of authorization (i.e admin).
  • Token expiration.