https://github.com/codeforafrica/healthtools.za-ezolwaluko
Ezolwaluko / Intiation Watch App is tool to provide an easy way in which initiates and their families can check whether the traditional surgeons they have chosen are registered with the Eastern Cape Department of Health. Accessible at https://ezolwaluko.org.za/en
https://github.com/codeforafrica/healthtools.za-ezolwaluko
africa city-press code-for-africa data-journalism data-tools eastern-cape health healthtools initiation-watch south-africa tools tradition traditional-surgeon za
Last synced: 3 months ago
JSON representation
Ezolwaluko / Intiation Watch App is tool to provide an easy way in which initiates and their families can check whether the traditional surgeons they have chosen are registered with the Eastern Cape Department of Health. Accessible at https://ezolwaluko.org.za/en
- Host: GitHub
- URL: https://github.com/codeforafrica/healthtools.za-ezolwaluko
- Owner: CodeForAfrica
- License: apache-2.0
- Created: 2018-06-18T13:15:28.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T06:15:36.000Z (about 3 years ago)
- Last Synced: 2025-03-04T08:02:12.086Z (3 months ago)
- Topics: africa, city-press, code-for-africa, data-journalism, data-tools, eastern-cape, health, healthtools, initiation-watch, south-africa, tools, tradition, traditional-surgeon, za
- Language: HTML
- Homepage: https://ezolwaluko.org.za/en
- Size: 4.69 MB
- Stars: 2
- Watchers: 17
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Healthtools-Ezolwaluko - Flask
Healthtools-Ezolwaluko Repo## Readme Contents
- [Project Documentation Links](/README.md#project-documentation-links)
- [Dev Environments](/README.md#dev-environments)
- [Techinical Specifications](/README.md#technical-specifications)
- [Module List and Syntax](/README.md#module-list-and-syntax)
- [Caveats, Dev Notes and or Outstanding Bugs](/README.md#caveats-dev-notes-and-or-outstanding-bugs)## Project Documentation Links
## Dev Environments
#### Staging Environment
- Local Environment
#### Live Environment
- Standard Heroku App
## Technical Specs
- Python Flask
- Bootstrap 3#### Device and Browser Information
V1.0 will be a mobile first web-app, designed purely for mobile but viewable by web.
The following browsers and devices need to be 100% design match:
- Latest 3 Chrome, IE, Edge, Firefox Desktop
- Latest 2 Chrome, Edge, Safari Mobile
V2.0 will include a desktop design.## Module list and syntax
#### How to set up for Development ####
* clone the repo
* install a virtual env and activate it: `virtualenv --no-site-packages env; source env/bin/activate`
* install requirements: `pip install -r requirements.txt`#### How To Set Up the Database
Setup the PostgreSQL database (minimum version 9.6.*)
```
psql -U postgres
=# CREATE USER healthtools WITH PASSWORD 'healthtools';
=# CREATE DATABASE healthtools;
=# GRANT ALL PRIVILEGES ON DATABASE healthtools TO healthtools;
=# \q
```
Construct your db app-side:
```
from healthtools_ec.models import db
from healthtools_ec.models.seeds import seed_db
run 'python rebuild_db.py'
```#### Deploying database changes ####
* Healthtools-Ezolwaluko App uses Flask-Migrate (which uses Alembic) to handle database migrations.
* To add a new model or make changes, update the SQLAlchemy definitions in `healthtools_ec/models/`. Then run
`python app.py db migrate --message "a description of your change"`
* This will autogenerate a change. Double check that it make sense. To apply it on your machine, run
`python app.py db upgrade head`