- 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.
- Clone repository
git clone https://github.com/slavikovics/Demography
cd Demography- Go to data folder
cd data- Create virtualenv
virtualenv .venvIf you don't have virtualenv installed:
pip3 install virtualenv- Intall dependencies from requirements.txt
Go to your virtual environment:
source ./.venv/bin/activateInsatll 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 startsudo docker compose build
sudo docker compose up
