Skip to content

Commit

Permalink
implement new mensa api structure support, refactor some naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fnschmidt committed Oct 1, 2024
1 parent 44f83ca commit 86b1a7c
Show file tree
Hide file tree
Showing 18 changed files with 285 additions and 279 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CampusUnbloat is the go-to home for any[^1] BA student. It combines both CampusDual and Studentenwerk data into a modern and fast webapp.
This is the frontend and main repository.

[^1]: The only supported mensa provider is Studentenwerk Leipzig, other mensa providers are TBD.
[^1]: Hundreds of canteens in Germany are supported thanks to [OpenMensa](https://github.com/openmensa/openmensa), but Studentenwerk Leipzig has 'native' support.

> This project was inspired by the poor condition of campus dual
Expand Down Expand Up @@ -31,11 +31,13 @@ services:
- PUBLIC_IMPRESS_FULLNAME= # your full name
- PUBLIC_IMPRESS_STRASSE_HAUSNR= # your street and house number
#- PUBLIC_IMPRESS_ADDRZUSATZ= Optional Adresszusatz
- PUBLIC_IMPRESS_ORT_PLZ=placeholder_city_zip # your city and zip code
- PUBLIC_IMPRESS_TELEFON=placeholder_phone # your phone number
- PUBLIC_IMPRESS_EMAIL=placeholder_email # your email address
ports:
- '3000:3000'
- PUBLIC_IMPRESS_PLZ_ORT= # your zip code and city
- PUBLIC_IMPRESS_TELEFON= # your phone number
- PUBLIC_IMPRESS_EMAIL= # your email address

# A reverse proxy is necessary for TLS. HTTP is only allowed in dev mode
# ports:
# - '3000:3000'
networks:
- eduroam

Expand All @@ -49,6 +51,9 @@ services:

unbloat-api-mensa:
image: docker.io/flschmidt/campusunbloat-api-mensa
environment:
- FILTER_OPENMENSA=y # query every openmensa canteen and filter out those without data.
# recommended but optional. Places some load on their servers
volumes:
- mensa_volume:/app/data # used for caching mensa data, technically optional
networks:
Expand All @@ -65,12 +70,8 @@ volumes:
1. Build both APIs
- have a working Rust toolchain (see [here](https://rustup.rs))
- both:
- install SSL development files (e.g. `libssl-dev` on Debian)
- api-mensa:
- install SQLite3 development files (e.g. `libsqlite3-dev` on Debian)
- api-campus:
- install the provided CA (inside that repo (trust me)) unless `GEANT OV RSA CA 4` is already installed
- run `cargo run` in each root

2. Clone this repo
Expand Down
15 changes: 10 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ services:
- PUBLIC_IMPRESS_FULLNAME= # your full name
- PUBLIC_IMPRESS_STRASSE_HAUSNR= # your street and house number
#- PUBLIC_IMPRESS_ADDRZUSATZ= Optional Adresszusatz
- PUBLIC_IMPRESS_ORT_PLZ=placeholder_city_zip # your city and zip code
- PUBLIC_IMPRESS_TELEFON=placeholder_phone # your phone number
- PUBLIC_IMPRESS_EMAIL=placeholder_email # your email address
ports:
- '3000:3000'
- PUBLIC_IMPRESS_PLZ_ORT= # your zip code and city
- PUBLIC_IMPRESS_TELEFON= # your phone number
- PUBLIC_IMPRESS_EMAIL= # your email address

# A reverse proxy is necessary for TLS. HTTP is only allowed in dev mode
# ports:
# - '3000:3000'
networks:
- eduroam

Expand All @@ -27,6 +29,9 @@ services:

unbloat-api-mensa:
image: docker.io/flschmidt/campusunbloat-api-mensa
environment:
- FILTER_OPENMENSA=y # query every openmensa canteen and filter out those without data.
# recommended but optional. Places some load on their servers
volumes:
- mensa_volume:/app/data # used for caching mensa data, technically optional
networks:
Expand Down
Loading

0 comments on commit 86b1a7c

Please sign in to comment.