hospitalrun-server

Node backend

Github星跟踪图

HospitalRun Server

Status Release Version GitHub CI Build Status Coverage Status Language grade: JavaScript Documentation Status
FOSSA Status Commitizen friendly dependabot Slack Join the community on Spectrum

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 or yarn install
  5. Run npm run dev or yarn dev to build and watch for code changes:
    • a development database will start on http://localhost:5984
    • you can access its Admin interface on http://localhost:5984/_utils, username: dev and password: dev

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.

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 or yarn 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 or yarn 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 or yarn commit from the root directory in order to commit following our standards.

Documentations

Plugins

Read more on HospitalRun Plugins.

Services

Read more on HospitalRun Services.

Behind HospitalRun

Hosted by

Sponsors

Sponsors

Backers

Backers

Lead Maintainer

Maksim Sinik

Core Team

M.D. Daniele Piccolo

Contributors

Contributors

Founders

Released under the MIT license.

概览

名称与所有者HospitalRun/hospitalrun-server
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证MIT License
发布数24
最新版本名称v2.0.0-alpha.5 (发布于 2020-11-07 11:11:34)
第一版名称0.9.0 (发布于 )
创建于2014-04-02 15:29:37
推送于2023-01-09 09:53:11
最后一次提交2023-01-09 10:52:39
星数864
关注者数63
派生数631
提交数1.3k
已启用问题?
问题数109
打开的问题数11
拉请求数400
打开的拉请求数1
关闭的拉请求数287
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部