https://github.com/mediacomem/comem-webdev-angular-auth-starter
Starter for the Citizen Engagement Angular app
https://github.com/mediacomem/comem-webdev-angular-auth-starter
Last synced: 5 months ago
JSON representation
Starter for the Citizen Engagement Angular app
- Host: GitHub
- URL: https://github.com/mediacomem/comem-webdev-angular-auth-starter
- Owner: MediaComem
- Created: 2017-04-03T14:44:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T12:56:50.000Z (about 9 years ago)
- Last Synced: 2025-04-08T22:32:36.919Z (about 1 year ago)
- Language: HTML
- Size: 353 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Comem+ MAS-RAD DFA Angular Auth Starter
This repository contains a starter for the Citizen Engagment angular app that students will have to develop for the [MAS-RAD DFA course][masrad].
The purpose of this starter is to kickstart the project development by providing a functionning authentication workflow, necessary to use the provided Citizen Engagment API.
The repository has two branches...
## Branch `master`
This branch contains a very basic project structure that includes:
* The `angular` framework
* The `angular-ui-router` library
* The `lodash`library (not required, but very useful)
* The `moment` library (not required, but very useful)
* The `Bootstrap CSS` framework
* An `index.html` file that includes all preceding frameworks/libraires
* An `app.js` file that contains:
* The main `angular` module, named `app`
* A `config` function attached to this `app` module with one predefined route, `home`
* An almost blank `main.html` template, used by the `home` state
## Branch `solution`
This branch contains the complete starter code, based on the content of the `master` branch, and adding:
* A (very minimalist) `login.html` template
* A `login-ctrl.js` file with a `LoginCtrl` for logging in
* A `logout-ctrl.js` file with a `LogoutCtrl` (for... logging out)
* An `auth-service.js` file that contains the service handling authentification
* The `angular-storage` library
* A `second.html` template that contains the logout button
* An `auth-interceptor.js` file with the Interceptor that adds the `Authorization` header
**Feel free to change file names and/or content, as you see fit.**
[masrad]: https://github.com/MediaComem/comem-masrad-dfa