A Health Data Repository for data visualization for received from EMR systems through OpenHIM mediators.
- Download and Install Python from
https://www.python.org/depending on your operating system. - Download and Install PostgreSQL from
https://www.postgresql.org/depending on your operating system. - Download and Install Git in your machine from
https://git-scm.com/depending on your operating system. - Clone the Tanzania Health Data Repository project from GitHub by running the command
git clone [email protected]:SoftmedTanzania/tanzania-openhim-hdr.git - Install any text editor or IDE of your choice which runs terminal/bash on it i.e VS Code, Vim, PyCharm IDE.
- After Python is successfully installed, open your terminal/bash then run
pip3 install pipenv. - Then, upgrade pip by running the command
python -m pip3 install –upgrade pip3 - Navigate to the project folder then run the command
pipenv shellto create and activate the Project Environment if does not exist. - After successful activation of the environment, run
pipenv installto install all the packages needed for the project. - Run this command
cp env.tx .envto copy the sample env and set theemptyfields with your own ones. - Run this command to run the development server
python manage.py runserveror./manage.py runserver - Press CTRL+C for Linux and Windows or CMD+C for Mac to quit the running server.
- Run
./manage.py migrateto migrate the authentication tables to the database which is the SQLite database by default. - Run
./manage.py createsuperuserto create the first admin user to the sysem. - Run the command
python manage.py runserveror./manage.py runserverto re-run the development server. - DONE!!!