27 lines
872 B
Markdown
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 |