For installing the analysis scripts
We recomand that you activate a virtual environment before.
sh python_install.sh
If you run from analysis-script folder, you might want to set up the PYTHONPATH as below:
export PYTHONPATH=$PWD/analysis:$PYTHONPATH
sh docker_install.sh
yeah...you have to update it.
# firebase vars
READ_API_URL='https://your_project.cloudfunctions.net/export_json'
READ_TOKEN=''
#docker containers
MYSQL_PORT=3306
PHPMYADMIN_PORT=9000
DOCKER_COVID_MYSQL="docker.covid.mysql"
DOCKER_COVID_ADMIN="docker.covid.phpmyadmin"
# point to your dataset repo
PUBLIC_DATASETS_REPO_RELATIVE_PATH='../datasets'
# other vars
DATABASE_NAME=covid_dev
# your country geocoding file
GEOCODING_RAW_FILE_URL = "https://raw.githubusercontent.com/ch-covid-19/geo-locations/master/data/mex/MEX_geocoding.csv"
Warning, this script is also killing the container berfore restart. So you need to do it once.
sh docker_run.sh
- Connect to phpmyadmin (http://localhost:9000/db_structure.php)
- You have to create a database (default: covid_dev) with the same name as in the .env file.