Skip to content

StanfordBDHG/ENGAGE-HF-Web-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stanford Biodesign Digital Health ENGAGE-HF Web Frontend

Build and Test Deployment codecov

Web Frontend for the ENGAGE-HF project.

Behavior

The frontend allows providers and study coordinators to manage patients, enter medications, lab values, allergies, appointments and manage the ENGAGE-HF study.

Application

Stack

The ENGAGE-HF Web Frontend repository contains a React application built with TypeScript, Vite and Firebase. It provides automated GitHub Actions, setups for code linting, testing & test coverage reports, docker deployments, a docker compose setup.

Getting started

This project uses Node.js v22. Install Node.js, e.g. using nvm, homebrew (for macOS) or the official Node.js installer .

Backend

In order to use Web Frontend, you need to use actual Firebase environment or Emulator with seeded data. For developing locally, it's best to use the Emulator.

  1. Clone https://github.com/StanfordBDHG/ENGAGE-HF-Firebase repository

  2. In the root of ENGAGE-HF-Firebase run:

npm run prepare && npm run serve:seeded

Repeat step 2 each time files have changed.

Refer to ENGAGE-HF-Firebase repository for more details.

Dashboard

  1. Install all dependencies
npm install
  1. Setup environment variables

Refer .env.example file for environment variables documentation. Copy .env.example to .env.local and adjust if necessary.

  1. Start the Vite Application
npm run dev

Open http://localhost:5173 with your browser to see the result.

Docker

  1. Install Docker on your machine.
  2. Build the image and run the docker compose setup: docker compose -f docker-compose-development.yml up.

You can view the images you create with docker images.

Open http://localhost with your browser to see the result. You can visit http://localhost:8080 to see the reverse proxy setup before the main application.

The docker-compose.yml setup contains a production-ready setup using a reverse proxy.

Every version of the application on the main branch is automatically packaged into docker images using the main tag. Every release is also published using the latest and respective version tags.

Deployment

This repository contains all necessary files to deploy the web frontend to Google Cloud Firebase.

Deployment Configuration

...

License

This project is licensed under the MIT License. See Licenses for more information.

Contributors

This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. See CONTRIBUTORS.md for a full list of all contributors.

Stanford Byers Center for Biodesign Logo Stanford Byers Center for Biodesign Logo

About

Web Frontend of the ENGAGE-HF Project

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Languages