Giter Site home page Giter Site logo

codeforafrica / healthtools.za-ezolwaluko Goto Github PK

View Code? Open in Web Editor NEW
2.0 16.0 1.0 4.81 MB

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

Home Page: https://ezolwaluko.org.za/en

License: Apache License 2.0

Python 20.38% CSS 11.57% JavaScript 5.13% HTML 60.73% Dockerfile 1.56% Makefile 0.08% Procfile 0.01% Shell 0.27% Mako 0.26%
initiation-watch healthtools south-africa za eastern-cape health tradition traditional-surgeon city-press data-journalism

healthtools.za-ezolwaluko's Introduction

Healthtools-Ezolwaluko - Flask

Healthtools-Ezolwaluko Repo

Readme Contents

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

healthtools.za-ezolwaluko's People

Contributors

davidlemayian avatar esirk avatar wcmoosa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stodipo

healthtools.za-ezolwaluko's Issues

Where http://zidoctorsv2.herokuapp.com/embed_widget?q=1 is running from

Hello @wcmoosa
I've been looking at this codebase and noticed your contributions so thanks for your contribution.
I'm facing a small information gap on where the http://zidoctorsv2.herokuapp.com/embed_widget?q=1 runs from and who manages it. Will really appreciate in case you have any information to share about this.

<iframe style="width: 100%; height: 250px" src="http://zidoctorsv2.herokuapp.com/embed_widget?q=1"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.