An example app with JSON API using Express, Passport and JWT. There is a sample client Angular 2 app that consumes this API.
To start:
npm install
npm start
If you want to add the dependencies to your project:
npm install --save bcrypt jsonwebtoken passport passport-jwt