Giter Club home page Giter Club logo

hospitalrun-server's Introduction

HospitalRun Server

Status Release Version GitHub CI Coverage Status Language grade: JavaScript Code scanning Documentation Status FOSSA Status Commitizen friendly dependabot Slack

Node.js backend for HospitalRun: free software for developing world hospitals. To contribute, follow the guidelines in this readme or alternatively ask for details on the community Slack channel: #contributors.


This repository is for the HospitalRun v2 and it is currently under heavy development. If you are searching for the no longer supported version 1.0.0-beta, you can find it here.

Contributing

Contributions are always welcome. Before contributing please read our contributor guide. Then follow these steps:

  1. Fork this repository to your own GitHub account
  2. Clone it to your local machine
  3. Navigate to the cloned folder: cd hospitalrun-server
  4. Install the dependencies: npm install
  5. Check that env variables are set correctly
  6. Run npm run dev to build and watch for code changes:

Working on Issues

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.

Environment

In order to run hospitalrun-server you need to set the correct environment variables. Since dotenv is already included, it is just matter of renaming .env.example file to .env: this file include all of the mandatory defaults.

Development Database

This project uses pouchdb-server for development and you, as contributor, don't need to provide your own CouchDB instance. Upon first run of the dev script (npm run dev), a new data folder will be created inside the ./db folder. The database credentials are: username: dev and password: dev. The file ./db/config.json contains the DB's configuration: you can change it if you want, but please don't commit any changes to it.

Note: PouchDB-server is meant to be use only during development. Please don't deploy any production/testing HospitalRun instances on it. For production deployments please follow the deployment guide.

Tests

Every code additions or fixs on the existing code, has to be tested. This project uses node-tap as test runner. To run all tests use npm run test.

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.

Documentation

DataBase

Read more at HospitalRun DataBase.

Plugins

Read more at HospitalRun Plugins.

Services

Read more at HospitalRun Services.

License

Released under the MIT license.

hospitalrun-server's People

Contributors

matteovivona avatar dependabot-preview[bot] avatar dependabot[bot] avatar jkleinsc avatar fox1t avatar tangollama avatar greenkeeper[bot] avatar matthewdorner avatar hpierce1102 avatar stukalin avatar jackcmeyer avatar snyk-bot avatar semantic-release-bot avatar mofesola avatar thorsteinsson avatar schneems avatar fossabot avatar ariscris avatar toshihidetagami avatar serg123e avatar nclbaz avatar rwanyoike avatar pgte avatar drakemedic avatar phearzero avatar turbomack avatar kenyangeek avatar professorhaseeb avatar fgiorlando avatar donaldwasserman avatar

Watchers

James Cloos avatar  avatar

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.