Skip to content

mechevarria/va-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published