This an example for Angular2-Token a token based authentication service for Angular with multiple user support. It uses a Rails 5.0 API backend with the devise token auth gem.
Angular2-Token is currently in Alpha. Any contribution is much appreciated.
- NodeJs >= 6.3.1
- Ruby >= 2.2.2
-
Clone this repository with
git clone https://github.com/neroniaky/angular2-token-example.git
-
Move to the directory and install gem dependencies
cd angular2-token-example bundle install
-
Migrate the database
rails db:migrate
-
Install angular2 client
npm run postinstall
-
Run the rails server in the main directory with
rails server
-
Open http://localhost:3000 in your browser
The MIT License (see the LICENSE file for the full text)