Coder Social home page Coder Social logo

maciekglowacki / hospitalrun-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hospitalrun/hospitalrun-frontend

0.0 0.0 0.0 108.34 MB

Frontend for HospitalRun

Home Page: https://staging.hospitalrun.io

License: MIT License

JavaScript 0.53% HTML 0.26% CSS 0.28% Dockerfile 0.05% TypeScript 98.87%

hospitalrun-frontend's Introduction

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: npm install
  4. Run npm run start to build and watch for code changes

Translation

Use the stadards in this readme.

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

npm run test:ci will run the entire test suite

npm run test will run the test suite in watch mode

npm run lint will run the linter

npm run 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 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


Jack Meyer

Matteo Vivona

Stefano Casasola

Kumiko Kashii

Grace Lau

Stefano Miceli

Medical Supervisor


M.D. Daniele Piccolo

Past Contributors


Michael Daly

Contributors

Contributors

Founders


John Kleinschmidtr

Joel Worrall

Joel Glovier

License

Released under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.