This project was generated with Angular CLI version 10.0.1.
This project contains a dev container which can be used when developing. Read more here. Usage of this is optional. To use the dev container, open the repo in VS Code and follow the prompt to build and open in the container. The dev container is based on the standard node 14 + typescript image, with the angular CLI installed.
MSAL is used for authentication to Azure AD. To get running, create a new App Registration in AAD, with the following settings:
- Authentication:
- Single-page application
- Redirect URIs:
http://localhost:4200
- Redirect URIs:
- Implicit Grant:
- Access tokens
- ID tokens
- Single-page application
- Leave the rest of the settings as default
Create a copy of src/environments/environment.ts
and call it environment.local.ts
.
Add the App ID from the app you just created here:
...
auth: {
clientId: 'app-id-here'
}
...
NOTE: The app will request permissions from AAD the first time it runs, and will require admin consent for some of them. For this reason you will need to be able to act as an AAD administrator.
- Run
npm install
- Run
ng serve
to start the dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.