This repository is using a very old version of Angular! It was build in 2016, so the technology has evolved considerably since then. Consider exploring projects that use newer versions of Angular.
- Backend: NodeJS, express, express-jwt
- Frontend: Angular2, Typescript, Bootstrap
- Clone repository
- Run npm install
- Register in auth0.com
- Create an app and a few test users
- In app->settings add http://localhost:3001 in Allowed Callback URLs, Allowed Logout URLs, Allowed Origins (CORS)
- Edit variable authenticate in server/app.js with your keys
- Edit variable lock in client/src/app.ts with your keys
- Run gulp play
- Visit http://www.localhost:3001
- Check console in developer tools for responses
- Enjoy!
- Add livereload
- Split app.ts in separate files
- Todd Motto, https://toddmotto.com/angular-2-authentication
- Auth0 blog, https://auth0.com/docs/quickstart/spa/angular2/no-api
- Ionic blog, http://blog.ionic.io/ionic-2-and-auth0/
The content of this project is licensed under the MIT license.