Logo Lanfrica

BaobabHealthTrust/master-facility-list

Domain:

healthcaredigital infrastructure
Creator:
Bao
Host:
The main Repository for both the API and Client source of the Malawi Master Health Facility Register # Master Health Facility Register At its very core, the MFL is a comprehensive database of all the Health Facilities in the country (Malawi). From Private Hospitals to Village Clinics, the system keeps track of resources, utilities and services available in each one of these facilities just to mention a few. This project is the first deliverable under the Kuunika Data For Action Initiative and aims at serving the general users, District Health Officers and any other stakeholders in the Malawi Healthcare Sector. Additionally, the facilities and their information will be available via a REST API for other services and systems to consume, such as Baoabab Health Trust Electronic Management Record Systems (EMRs) or the District Health Information System (DHIS). # Dependancies * NodeJS > v8.11.3 * MySQL v5.5 # Setup The project is generated by LoopBack, a rapid API development framework. For more information, see the Loopback documentation. There is a `client` directory that has a create-react-app setup from which the User Interface will be built. The idea is to build static files from `create-react-app` into the `client` folder so that the API and front-end can run on the same node server. # Installation ## Step 1 clone Clone this repository into your local directory, Use the command below: ```sh # Clone project to a computer git clone github.com # Navigate to the project root directory cd master-facility-list ``` ## Step 2 dependancies Install all the dependancies for the main (backend project). ```sh # install backend dependancies npm install ``` ### setup front-end dependancies set up the frontend dependancies by following the commands bellow: ```sh # navigate to the frontend directory cd client # install frontend dependancies npm install ``` NOTE: use `sudo npm install` if you have permission issues. This applies to both the backend and the frontend. ## Step 3 tests Run the tests and make sure they ar …