mechevarria / va-health

EurekaAI platform based application AI system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VA Health

Master application for a REST api to the Eureka SDK and Vue.js based frontend

api-flask

  • Install required libraries
cd api-flask
pip install -r requirements.txt
  • Set necessary environment variables in api-flask/.env
  • Do NOT use spaces for the values
EUREKA_USER="firstname.lastname@symphonyai.com"
EUREKA_PASS="my_password"
AYASDI_APISERVER="https://platform.ayasdi.com/workbench/"
SOURCE_NAME="iris.csv"
FLASK_APP="app.py"
FLASK_DEBUG="1"
SOURCE_NAME_HOLDOUT="va_health_test.csv"
NETWORK_NAME="OAA_1"

For local development, this script will start up the flask server scripts\api-run.sh

frontend-vue

Web application integrating bootstrap based coreui with Vue. Initial scafold done with Vue CLI. The project can be deployed as a docker container

screenshot

Integration and Links

Project setup

  • Install a nodejs runtime is installed (LTS)
npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Docker Container Running, Exporting

  • Inside the scripts folder are all the bash scripts for building, running and exporting containers

  • Make sure the api and frontend images are built with api-build.sh and frontend-build.sh

  • Run the containers with run-all.sh or individually with api-run.sh and frontend-run.sh

Make sure there is a .env file with the environment variables for the api conatiner to read. .env can be in the api-flask folder or the scripts folder

The frontend container script checks to see if the api container is running and gets the ip address of the container. This address is injected as the environment variable API_ADDRESS

  • Stop all the containers with stop-all.sh

  • Build the tar files with save-tar.sh

  • Load the save file with load-tar.sh

Testing api-flask in Postman

TODO

  • Import the environment
  • Import the collection

About

EurekaAI platform based application AI system


Languages

Language:Vue 53.2%Language:Python 34.9%Language:JavaScript 9.4%Language:Shell 1.9%Language:HTML 0.3%Language:Dockerfile 0.3%