Skip to content

akshay-ap/hospitalrun-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HospitalRun Frontend

Status Release Version GitHub CI Coverage Status Language grade: JavaScript Documentation Status FOSSA Status Commitizen friendly dependabot Slack Run on Repl.it Gitpod Ready-to-Code

React frontend for HospitalRun: free software for developing world hospitals.


Version 1.0.0-beta is no longer supported. Version 2 is currently under development.

  • To contribute, follow the guidelines in the readme or alternatively ask for details on Slack channel #contributors.
  • To use version 1.0.0-beta (not production ready) in a hospital facility, ask for support on Slack channel #troubleshooting.

Slack

Contributing

Contributions are always welcome. Before contributing please read our contributor guide.

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Navigate to the cloned folder: cd hospitalrun-frontend
  3. Install the dependencies: yarn
  4. Run yarn run start to build and watch for code changes

Online one-click setup for contributing

Contribute to HospitalRun using a fully featured online development environment that will automatically: clone the repo, install the dependencies and start the webserver.

Open in Gitpod

Connecting to HospitalRun Server

Note: The following instructions are for connecting to HospitalRun Server during development and are not intended to be for production use. For production deployments, see the deployment instructions.

  1. Configure HospitalRun Server
  2. Start the HospitalRun Development Server
  3. Copy the .env.example file to .env
  4. Change the REACT_APP_HOSPITALRUN_API variable to point to the HospitalRun Development Server.

Potential Setup Issues

Some developers have reported the following errors and the corresponding fixes

Problem with Project Dependency Tree

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
  "babel-loader": "8.1.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:
  /path/to/hospitalrun/node_modules/babel-loader (version: 8.0.6)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.
  3. Remove "babel-loader" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

To fix this issue, add SKIP_PREFLIGHT_CHECK=true to the .env file.

Running Tests and Linter

yarn test:ci will run the entire test suite

yarn test will run the test suite in watch mode

yarn lint will run the linter

yarn lint:fix will run the linter and fix fixable errors

Useful Developer Tools

Working on an Issue

In order to optimize the workflow and to prevent multiple contributors working on the same issue without interactions, a contributor must ask to be assigned to an issue by one of the core team members: it's enough to ask it inside the specific issue.

How to commit

This repo uses Conventional Commits. Commitizen is mandatory for making proper commits. Once you have staged your changes, can run npm run commit or yarn commit from the root directory in order to commit following our standards.


Behind HospitalRun

Hosted by

Sponsors

Sponsors

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs

Backers

Backers

Lead Maintainer


Maksim Sinik

Core Team


Stefano Casasola

Michael Daly

Riccardo Gulin

Grace Lau

Jack Meyer

Matteo Vivona

Medical Supervisor


M.D. Daniele Piccolo

Contributors

Contributors

Founders


John Kleinschmidtr

Joel Worrall

Joel Glovier

License

Released under the MIT license.

About

Frontend for HospitalRun

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.5%
  • Other 1.5%