Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```