Total Confirmed Cases by State http://pyact.com/ncov-globe/by-state.html
Total Confirmed Cases by Country http://pyact.com/ncov-globe/by-nation.html
Cases by States API(except China) http://pyact.com:5000/state-info-api
Chinese Cases by States API http://pyact.com:5000/province-info-api

├─back //Flask
│ └─flask
│ ├─final //globe data
│ ├─mid //mid-data
│ ├─static //source data
│ ├─myvenv //ubuntu virtual environment
│ ├─win-venv //windows virtual environment
│ ├─main.py //Flask main app
│ └─scraper.py //Scraper app
├─conf //ubuntu configuration file
│ ├─init
│ ├─ncov.service //ubuntu service configuration( /etc/systemd/system)
│ └─nginx_conf //ubuntu nginx configuration( /etc/nginx/sites-available)
└─front //Front-end webgl globe
Back-end :
Front-end :
Open a bash terminal/command window and execute the following commands:
cd <path-to-this-repo> # change to root of this repocd back/flasksource win-venv/Scripts/activate # activate the virtual encironmentpython3 run main.py # start back-end serverStart nginx (you shoud download the nginx before)
cd <path-to-nginx>/conf # change to nginx conf directory server {
listen 8888; #port
server_name localhost ;
location / {
root <path-to-this-repo>/front/webgl-globe-master;
index globe/index.html;
}
}
cd <path-to-nginx>
start nginx or nginx -s reload
wechat:42692305