项目作者: NUMde

项目描述 :
NUM COMPASS web app
高级语言: TypeScript
项目地址: git://github.com/NUMde/compass-numapp-web.git
创建时间: 2021-07-26T14:50:52Z
项目社区:https://github.com/NUMde/compass-numapp-web

开源协议:MIT License

下载


NUM COMPASS web app

Gitmoji
PRs Welcome
MIT license
Open issues
Code quality: js/ts

NUM COMPASS web app is an open source app that allows users to answer digital questionnaires for studies. The app is part of the COMPASS (Coordination on mobile pandemic apps best practice and solution sharing) project, which aims to improve how apps are used to cope with pandemics.

The app displays questionnaires based on FHIR resources. Questionnaire responses are end-to-end encrypted, which makes them useful for research, as the respondents’ identities are protected.

This repository includes everything you need to set up the app and customize it to suit your needs. Get started with the guide below or see the docs folder for detailed setup and development instructions.

Technologies

Browser support

The app supports recent mobile and desktop devices, and the two latest major versions of the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Opera

Stencil, the toolchain the web app uses, is compatible with older browser versions. The web app may work with older browser versions, though they aren’t officially supported.

Development requirements

Recent versions of the following available in your environment:

  • Node.js
  • npm
  • git

For minimum versions, see the engines section in package.json.

Code formatting

We format our code using Prettier. You can find the code formatting rules in the .prettierrc file.

To check and automatically fix potential code formatting issues, use the npm run code-format command or add a prettier extension to your IDE.

Installation

  1. npm ci

🔧 Either run cp .env.example .env and adjust the parameters in the .env file or set/export the environment variables.

Usage

  1. # Run the app in dev mode
  2. npm start
  3. # Build the app for production
  4. npm run build
  5. # Run the unit tests once
  6. npm test
  7. # Run the unit tests and monitor file changes to automatically re-run the tests during development
  8. npm run test:watch
  9. # Run a production build and analyze the generated bundle. This creates a stats.html file in the root directory.
  10. npm run analyze