alle overheidsdata — monitor, filter, stuur door.
How to setup a local development environment:
git clone [email protected]:openstate/jodal.git
cd backend && cp config.py.example config.py && cp config.yaml.example config.yaml
- Edit
config.py
andconfig.yaml
accordingly to what you want, not strictly necessary` - Edit
fa-kickstart/kickstart.json
, esp. the part where it creates an account ./bin/dev.sh
./setup.sh
docker exec -it jodal_backend_1 ./manage.py scrapers locations
docker exec -it jodal_backend_1 ./manage.py scrapers cvdr
and other scrapers
To access the local development environment, add the following in /etc/hosts
on Linux or /Windows/System32/drivers/etc/hosts
on Windows:
127.0.0.1 api.bron.live app.bron.live heritrix.bron.live bron.live www.bron.live users.bron.live
Then you can go to http://app.bron.live
preferably in a private window, because of HSTS parameters on the live setup.
You can quickly login using a link like http://api.bron.live/users/[email protected]&password=blatenblaten
Bron uses Fabric for deployment. Run fab deploy
.
Bron uses alembic for migrations
docker exec jodal_backend_1 alembic upgrade head
docker exec jodal_backend_1 alembic downgrade -1
docker exec jodal_backend_1 alembic revision -m "create account table"
Bron runs several scrapers, in the jodal_backend_1
container. Run the floowing steps to get started:
docker exec jodal_backend_1 ./manage.py scrapers locations
docker exec jodal_backend_1 ./manage.py scrapers openspending -f 2021-01-01
docker exec jodal_backend_1 ./manage.py scrapers poliflw -f 2021-01-01
docker exec jodal_backend_1 ./manage.py scrapers obv -f 2021-01-01
Send an email to [email protected]