OHAP:OpenHotel Auth Protocol
Basic example with OHAP /auth-example
You can run OpenHotel Auth either with native installations (Deno + Node) or via Docker.
If you prefer running without Docker:
- Deno >= 1.44
- Node >= 20
- Yarn (make sure Corepack is enabled if using Yarn 4)
- Run
deno task installto install dependencies. - Run
deno task startto start the server. - Set
versiontodevelopmentin theapp/server/config.ymlfile.
https://docs.docker.com/engine/install/
docker compose up --buildThis will spin up both the server (Deno) and the client (Vite/React) in development mode, with hot reload.
Note
There’s no need to install Deno or Node on your host machine, as Docker handles them. By default, the server runs on port 20240, and the client on port 2024. Check or adjust your docker-compose.yml if needed. In development mode, changes to your code are automatically reflected without rebuilding the image.