2 Commits

Author SHA1 Message Date
Jonas Linter
8a52765f87 Added more instructions 2025-09-30 15:10:50 +02:00
Jonas Linter
eea25930ff Updated readme 2025-09-30 14:40:22 +02:00

View File

@@ -1,28 +1,22 @@
# Alpine bits # Übersicht
Hour alpine bits application needs to mostly act as a server. It needs to provide room reservation information to the ASA alpinebits client at the hotel. Enthält einen in Python geschriebenen Alpine Bits Server zur Übertragung von Buchungsanfragen von Landingpages an Partnerhotels. Ein Fastapi Endpoint empfängt Anfrageformulare von den wix.com landingpages, und speichert sie in die Datenbank ab. Der Alpine Bits Server stellt diese dann Hotels auf dem Endpoint `www.99tales.net/api/alpinebits/server-2024-10` zu Verfügung.
However in other things we act could potentially act as the client with ASA acting as the alpinebits server. Basically according to the documentation the whole thing depends on who is requesting information and who has it.
When ASA wants to know our GuestRequests from the Landing page then they are the client and we the server. This causes some problems because our system actually knows less than the hotel system. We can't easiliy add Room Rate information and publish a reservation to ASA because we don't actually know the rooms.
Just for GuestRequests this should be fine however.
## Entwicklung
# Wix formular parsing Notizen Auf dem Entwicklungsystem muss git und der uv python package manager installiert sein.
### Git Authentification
### Kontaktinformationen
Wenn über http geklont wird muss lokal der [git-credential-oauth](https://github.com/hickford/git-credential-oauth) helper installiert sein. Besser gehts über ssh. Da muss ein ssh-key in gitea für den eigenen Benutzer angelegt sein.
1. Repo klonen.
#### Werbeparameter 2. `uv sync` ausführen
3. `uv run python -m alpine_bits_python.run_api` führt die API lokal auf Port 8080 aus. Datenbank wird automatisch erstellt und bei jedem start geleert.
## Konfiguration
field:angebot_auswaehlen -> Kommentar mit Angebot TODO