webapp-schulverwaltung

back

Setup & Development

This project was generated with Angular CLI.

Getting Started

Preparation:

Start the development server:

npm start

The application is then running on http://localhost:4200.

To be able to make authenticated requests to the API, the OAuth access token has to be available in localStorage (or sessionStorage) under the key CLX.LoginToken (by setting localStorage.setItem("CLX.LoginToken", "ey...")). If not provided, the application displays an unauthenticated message to the user.

Code scaffolding

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.

Build

Build the project:

npm run build

Or for a production build:

npm run build:prod

The build artifacts will be stored in the dist/ directory.

If you have cloned the event-portal repository to ../evento-portal relative to this repository (i.e. into the same directory), you can run the following to build and copy the application to the Evento Portal for testing it integrated:

npm run build-and-copy-local

Visualize the contents of the generated bundle by running:

npm run analyze

Linting & Testing

Linting & Checks

Check source files with ESLint (for the configuration, see .eslintrc.json):

npm run lint

Print a report of unused dependencies, files & exports using Knip (for the configuration, see .knip.json):

npm run unused

Unit tests

Execute the unit tests via Karma:

npm test

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.