Skip to content

Web dashboard to monitor inmate vitals and security cameras

Notifications You must be signed in to change notification settings

lameuler/prism-dashboard

Repository files navigation

PrisM Dashboard

HacX! 2023 – Hack for Public Safety

Designed by Lam Eu Ler 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: https://prism.ler.sg

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:

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:

npm run build

You can preview the production build with npm run preview.

To deploy the app, you may need to install an adapter 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.

First, build the app with sudo npm run build as described above.

Then, start the process in pm2:

sudo pm2 start "npm run preview -- --host --port 80" --name prism

Updating

To update the hosted app after rebuilding, run pm2 update:

sudo pm2 update prism

About

Web dashboard to monitor inmate vitals and security cameras

Resources

Stars

Watchers

Forks