sabman / ua-2022-map

Map of reception points for refugees near Polish-Ukrainian border

Home Page:https://dopomoha.pl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ua-2022-map

Map of reception points for refugees near Polish-Ukrainian border

work in progress...

Development

We provide a docker-based dev environment; to spin up the system, run

make
make up
make down

For development and iterating on the code, get into a shell in the container and re-run your scripts from there with

make sh

From inside the shell you can then execute your scripts and iterate, e.g.

/app # ./download_data.py
/app # ./debug-app.py --host 0.0.0.0

If you prefer to run outside of docker instead, read on.

Steps:

  1. Create Python virtual env
  2. Install dependencies
  3. Generate site from templates
  4. Run local server

Repeat step 3 after changes.

Commands:

# clone the repo and enter the directory then:
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
./debug-app.py

Go to http://localhost:8000/en/ in the browser.

Build

python3 download_data.py
python3 -m http.server 8000 --directory build

Go to http://localhost:8000/en/ in the browser.

About

Map of reception points for refugees near Polish-Ukrainian border

https://dopomoha.pl

License:MIT License


Languages

Language:JavaScript 64.0%Language:HTML 16.8%Language:Python 12.3%Language:CSS 5.9%Language:Dockerfile 0.7%Language:Makefile 0.4%