Skip to content

data-preservation-programs/singularity-metrics-dashboard

Repository files navigation

Singularity Dashboard

Singularity metrics dashboard graph image

This repo contains a frontend dashboard for metrics on Singularity. The production app can be viewed at the following URL:

Stack

  • This is a Next js project made in Typescript
  • A serverless function facilitates communication with the database
  • Both the site and the serverless function are deployed via Vercel

Local development

  • This site has been tested on node 16.14.0
  • After cloning the repo, you'll need to create a .env file with the Mongo connection string MONGODB_URI=mongodb+srv://.../?readPreference=secondaryPreferred
  • After that, install dependencies: npm ci
  • And finally, run the app in dev mode npm run dev
  • Open http://localhost:10170 with your browser to see the result

Deployment

Currently this project is deployed on the Vercel Platform. This handles the following functionality:

  • Deployment, including shipping to production
  • Build previews
  • Backend/Serverless functions

To deploy to production or via CI:

  • Use the following docker container node:16.14.0
  • Run npm ci && npm run build && npm run start

Production deployment happens automatically as long as builds pass and production PRs are made against the main branch.

Check out the Next.js deployment documentation for more details.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •