Nothing. Prediction Heart Disease
- Python 3.6
- IDE (I use VScode)
- Create an virtual enviroment and make sure to run inside it
- Run
pip install -r requirements.txt
- Set the
config.py
for the database and etc. - Create a database named
corpe
- Place
heart.csv
insideinstance
directory or create the directory if not exist - In python interpreter run
from corpe import db, create_app
db.create_all(app=create_app())
- Create
config.py
file
class Config(object):
SECRET_KEY = # generate random key using: os.urandom(24)
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://username:password@database' # connect to database system
Set up environment variable from root project directory Set for development mode
export FLASK_ENV=development
export FLASK_APP=setup.py
Run this command and access the web app at localhost:5000
flask run
Access localhost:5000/gen
to seed admin
Access localhost:5000/gen-ds
to seed datasets
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.