Martin Dimitrov f3863719b5
All checks were successful
Build and push image for doorman-homeassistant / docker (push) Successful in 32s
Build and push Doorman UI / API / docker (push) Successful in 2m8s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 5s
add readmes for ui and schema
2025-06-10 18:59:14 -07:00

27 lines
872 B
Markdown

# doorman-ui
The React frontend for Doorman.
## running locally
NOTE: you should be running at least doorman-api before starting the UI
Install deps: `bun install`
Start dev server
`bun run start`
UI will be served on port 3005, visit the test door page http://localhost:3005?door=test
The UI proxies /api to localhost:8080 (doorman-api) running locally so make sure this is also running
# sample e2e testing with all components
you can do e2e testing with the UI by running doorman-api doorman-client and doorman-ui
visit http://localhost:3005?door=test&key=1234 and click through until reaching the buzzer part
in another tab simulate buzzer call to test buzzer with http://localhost:4500/buzzer-activated?From=6133163433
UI should show the door was unlocked. doorman-client should return `<Play>` tags to simulate pressing keys on the phone to allow access