Skip to content

slavikovics/Demography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Belarusian demography

Map Table

Acomplished tasks:

  • Parsing SDMX-JSON datastructures from belstat.
  • Fetching data and saving to database.
  • Forecasting future values using library Prophet.
  • Creating FastAPI API for the web-frontend to receive data.
  • Creating Frontend to display demographic data and forecasts.

How to launch:

  • Clone repository
git clone https://github.com/slavikovics/Demography
cd Demography

Without docker:

  • Go to data folder
cd data
  • Create virtualenv
virtualenv .venv

If you don't have virtualenv installed:

pip3 install virtualenv
  • Intall dependencies from requirements.txt

Go to your virtual environment:

source ./.venv/bin/activate

Insatll dependencies:

pip3 install -r requirements.txt
  • Launch prepare.py as module. This will download data from belstat API, create database and create all predictions. Creating forecasts may take a lot of time, if you don't need predictions data, you can just terminate forecasting at any time.
python3 -m prepare
  • After forecasting API will be automatically launched. If you have already loaded data, you can launch run.py as module, which will just start an API.
python3 -m run
  • Go to Frontend folder, there:
npm install
  • To launch Frontend:
npm start

Using docker and docker-compose:

sudo docker compose build
sudo docker compose up

About

Interactive map of belarusian demography with Prophet forecasts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors