Camaras is an interface for showing a montage of https://zoneminder.com/ monitors livestreams, where each monitor represents one of the hd or sd streams of a camera.
For more information about livestreams: https://zoneminder.readthedocs.io/en/stable/api.html#streaming-interface
npm install
For more information see .env_template
Required:
VITE_ZONEMINDER_HOST
: Set to the url of the ZoneMinder instance (https://yourserver
in https://zoneminder.readthedocs.io/en/stable/api.html#streaming-interface)
npm run dev
A zip file called dist.zip will be created at the root of the project, containing the build output.
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint