Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lameuler/prism-dashboard
Web dashboard to monitor inmate vitals and security cameras
https://github.com/lameuler/prism-dashboard
Last synced: 7 days ago
JSON representation
Web dashboard to monitor inmate vitals and security cameras
- Host: GitHub
- URL: https://github.com/lameuler/prism-dashboard
- Owner: lameuler
- Created: 2023-10-11T13:45:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-14T12:54:12.000Z (5 months ago)
- Last Synced: 2024-06-14T14:14:12.250Z (5 months ago)
- Language: Svelte
- Homepage: https://prism.ler.sg
- Size: 1.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PrisM Dashboard
[**HacX!**](https://hacx.sg) 2023 – Hack for Public Safety
Designed by [Lam Eu Ler](https://ler.sg) of Team **`wenkAI`**
Dashboard for monitoring the vitals signs (heart rate, respiratory rate, body temperature, falls) of inmates and security camera feeds in a prison.
*This is a demo with randomly generated people and data.*
Visit the demo site:
> Note: The demo site is no longer running off this `main` branch. The demo site is running an archive of this web app which has been converted into a static site with client side data generation rather than the original server generation and rendering. See the `archive` branch for more details.
## Developing
Start a development server:
```bash
npm run dev# or start the server on a specified port (eg 3000) and allow access from other devices
npm run dev -- --host --port 3000
```## Building
To create a production version of the app:
```bash
npm run build
```You can preview the production build with `npm run preview`.
> To deploy the app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
You may need to run the commands with `sudo` if you intend to host on port 80.
## Hosting Locally
To host the app locally, we can use [`pm2`](https://pm2.keymetrics.io).
First, build the app with `sudo npm run build` as described above.
Then, start the process in pm2:
```bash
sudo pm2 start "npm run preview -- --host --port 80" --name prism
```## Updating
To update the hosted app after rebuilding, run `pm2 update`:
```bash
sudo pm2 update prism
```