Skip to content

Repository files navigation

Ausleihe

This project now runs on Angular CLI 21.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

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

Run ng build to create a production build. The output is written to dist/Ausleihe.

Linting

Run ng lint to lint the application with ESLint.

Running unit tests

Run ng test to execute the unit tests via Karma.

For a one-shot local run without watch mode:

CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" npm test -- --watch=false --browsers=ChromeHeadless

The current suite is intentionally small and focused on the main application behavior:

  • src/app/app.component.spec.ts: app shell rendering and configured title.
  • src/app/buecherliste/*.spec.ts: category/book loading, lending flow, sorting, notification request, and Baqend query wiring.
  • src/app/signup/signup.component.spec.ts: signup, login failure handling, and redirect behavior for logged-in users.
  • src/app/me/me.component.spec.ts: admin view initialization, returning books, adding books, and logout.
  • src/app/chats/**/*.spec.ts: message loading, route-based detail loading, and image URL creation.

These tests isolate Baqend and HTTP dependencies with mocks, so they run as unit tests and do not require a live backend.

End-to-end tests

Legacy Protractor-based end-to-end tests were removed during the Angular 21 upgrade because Protractor is end-of-life. No replacement e2e runner is configured yet.

Further help

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

About

Buchausleihe für die private Bibliothek einer Lehrkraft

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages