RESTful web interface for visualizing air quality and image processing data.
TODO: Refactor front-end API calls into seperate files.
Requires Docker Compose, yarn, and Anaconda.
cd client
yarn installcd server
conda env create -f environment.ymlAWS credentials must be configured to connect with DynamoDB (see utils/create_ddb_table.py to create a table).
Start:
docker-compose up -d
Stop:
docker-compose down
Before anything, make sure there's a running redis server with hostname wvi-redis.
If the Flask server is having trouble connecting to that hostname, change the redis host parameter in server/app.py to "localhost"
and ensure redis is running locally.
Use seperate terminals (I recommend tmux) for client and server.
To connect with a local API server, set the VUE_APP_API_HOST environment variable to http://localhost:5000 either in .env or with export VUE_APP_API_HOST=http://localhost:5000.
cd client
yarn servecd server
conda activate wvi
python app.py
