# Geld vom FSR anfordern (WebApp)

> Web-Formular, um Erstattungen vom Fachschaftsrat Informatik anzufordern.

![](./screenshot.png)

## Deployment

Preferably just use the docker container built by this CI:

```sh
docker run registry.gitlab.fachschaften.org/oh14-dev/gib-geld-fsr:latest \
  --publish 80:3000 \
  --env 'PUBLIC_URL_PRIVACY=https://my-page.tld/privacy.html' \
  --env 'PUBLIC_URL_IMPRINT=https://my-page.tld/imprint.html' \
  --env 'GRAPHHOPPER_API_KEY=xxxxxxxxxxxxxxxxxxxx' \
```

Running this app requires a (free) GraphHopper api key to calculate driving distances and costs. Get it here: https://graphhopper.com/dashboard/#/apikeys

Please remember to also set the env vars

```env
PUBLIC_URL_PRIVACY=""
PUBLIC_URL_IMPRINT=""
```

to get usable legal links in the apps footer.

This app does not persist any data, but needs internet access to fetch money sources and resolutions from fspages.org.

You can also set the `PUBLIC_NOTICE_BANNER_HTML` env var with a HTML notice, which will be shown in a yellow alert box at the top of the page.

---

## Developing

```bash
pnpm run dev
```

## Building

```bash
pnpm run build
```

or

```bash
docker build --tag "gib-geld-fsr:local-dev" .
```

## Copyright and Licenses

- This projects source code: `MIT`
- Favicon: Google Emojis, [`Open Font License 1.1`](https://github.com/googlefonts/noto-emoji/blob/main/fonts/LICENSE)
- Ubuntu Font in PDF: [`UBUNTU FONT LICENCE Version 1.0`](https://github.com/daltonmaag/ubuntu/blob/master/LICENCE.txt)