https://github.com/HospitalRun/hospitalrun-server
Backend for HospitalRun
https://github.com/HospitalRun/hospitalrun-server
backend fastify hospitalrun hospitalrun-server nodejs
Last synced: about 2 months ago
JSON representation
Backend for HospitalRun
- Host: GitHub
- URL: https://github.com/HospitalRun/hospitalrun-server
- Owner: HospitalRun
- License: mit
- Archived: true
- Created: 2014-04-02T15:29:37.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T09:53:11.000Z (over 2 years ago)
- Last Synced: 2024-10-30T00:55:15.525Z (6 months ago)
- Topics: backend, fastify, hospitalrun, hospitalrun-server, nodejs
- Language: JavaScript
- Homepage: https://hospitalrun.io
- Size: 1.56 MB
- Stars: 875
- Watchers: 63
- Forks: 641
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# HospitalRun Server
 [](https://github.com/HospitalRun/hospitalrun-server/releases) [](https://github.com/HospitalRun/hospitalrun-server/releases) [](https://github.com/HospitalRun/server/actions) [](https://coveralls.io/github/HospitalRun/hospitalrun-server?branch=master) [](https://lgtm.com/projects/g/HospitalRun/hospitalrun-server/context:javascript)  [](https://hospitalrun-server.readthedocs.io)
[](https://app.fossa.io/projects/git%2Bgithub.com%2FHospitalRun%2Fhospitalrun-server?ref=badge_shield) [](http://commitizen.github.io/cz-cli/)  [](https://hospitalrun-slack.herokuapp.com)Node.js backend for [HospitalRun](http://hospitalrun.io/): 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](https://hospitalrun-slack.herokuapp.com).
---
**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](https://github.com/HospitalRun/hospitalrun-server/tree/1.0.0-beta).**
# Contributing
Contributions are always welcome. Before contributing please read our [contributor guide](https://github.com/HospitalRun/hospitalrun-server/blob/master/.github/CONTRIBUTING.md). Then follow these steps:
1. [Fork](https://github.com/HospitalRun/hospitalrun-server/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](https://github.com/HospitalRun/hospitalrun-server#environment) are set correctly
6. Run `npm run 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](https://www.npmjs.com/package/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](https://www.npmjs.com/package/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](https://node-tap.org/) as test runner. To run all tests use `npm run test`.## How to commit
This repo uses [Conventional Commits](https://www.conventionalcommits.org/). [Commitizen](https://github.com/commitizen/cz-cli) 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 atHospitalRun DataBase
.## Plugins
Read more atHospitalRun Plugins
.## Services
Read more atHospitalRun Services
.# License
Released under the [MIT license](LICENSE).