• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created almost 12 years ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Froide Theme for fragdenstaat.de

FragDenStaat.de

FragDenStaat CI

FragDenStaat.de is the German instance of Froide – a freedom of information portal software.

Development environment

FragDenStaat.de is a Django app with a PostgreSQL+PostGIS database and elasticsearch search service. There is a production deployment ansible configuration for details.. If you want an easy start, please use the below instructions with Docker (note that this is for convenience and that the actual deployment does not use Docker at the moment).

If you do not want to use Docker, you can install this like any Django project with dependencies and services.

Setup dev environment

FragDenStaat.de is a Django project that uses the core froide project and other froide Django apps as plugins. These froide and related apps are installed from repositories and it makes sense to set them up on your dev machine.

You need to have installed:

  • Python 3.8+
  • yarn
  • GDAL for Django's GeoDjango
  • freetype and imagemagick
  • postgresql bindings
  • poppler
  • qpdf
  • pango
  • libgeoip
  • libmagic

All of these dependencies should be installable via package managers (e.g. brew on macOS).

To make the setup easier the following script (devsetup.sh) creates a virtual environment, sets up and installs all repos of the Python backend and installs and links all repos of the JavaScript frontend build.

cd project-dir
curl https://raw.githubusercontent.com/okfde/fragdenstaat_de/main/devsetup.sh | bash

To update your setup later:

cd project-dir
bash fragdenstaat_de/devsetup.sh

Start services

You can run your own Postgres+PostGIS database and Elasticsearch service or run them with Docker.

You need docker and docker-compose. Make sure Docker is running and use the following command:

docker-compose -f docker-compose.dev.yml up

This will start Postgres and Elasticsearch and listen on port 5432 and 9200 respectively. You can adjust the port mapping in the docker-compose.dev.yml.

Setup database

If you need to adjust settings, you can copy the fragdenstaat_de/settings/local_settings.py.example to fragdenstaat_de/settings/local_settings.py and edit it.

To initialise the database:

# Activate virtualenv
source fds-env/bin/activate
cd fragdenstaat_de
# Create database structure
python manage.py migrate --skip-checks

To get started with some data:

# Load initial data (e.g. some CMS test fixtures)
python manage.py loaddata tests/fixtures/cms.json
# Create a superuser
python manage.py createsuperuser
# Create and populate search index
python manage.py search_index --create
python manage.py search_index --populate

Import SQL dumps

Example of loading SQL dumps into Docker postgres:

docker-compose -f docker-compose.dev.yml exec db dropdb -U fragdenstaat_de fragdenstaat_de
docker-compose -f docker-compose.dev.yml exec db createdb -U fragdenstaat_de -O fragdenstaat_de fragdenstaat_de
gunzip -k -c dump.sql.gz | docker-compose -f docker-compose.dev.yml exec -T db psql -U fragdenstaat_de

Quick start after setup

source fds-env/bin/activate
cd fragdenstaat_de
# Start service in background with -d
docker-compose -f docker-compose.dev.yml up -d
python manage.py runserver

Frontend development

cd fragdenstaat_de
yarn run serve

Upgrade dependencies

Currently pip-compile only works for pip-tools==6.3.0 and pip==21.2.4.

pip-compile -U requirements.in
pip-compile -U requirements-dev.in
pip-compile -U requirements-production.in

Main app dependencies

The fragdenstaat_de project depends on froide, multiple froide-related apps.

flowchart LR
    fragdenstaat_de[[fragdenstaat_de]]-->froide
    fragdenstaat_de-->froideapp[froide-*]
    froideapp-->froide
    froide-->filingcabinet[[django-filingcabinet]]
    fragdenstaat_de-->cms([django-cms])

License

Froide and fragdenstaat_de are licensed under the AGPL License.

Some folders contain an attributions.txt with more information about the copyright holders for files in this specific folder.

More Repositories

1

froide

Freedom Of Information Portal
Python
363
star
2

2013.archiv.codefor.de

The old website for Code for Germany, 2013 edition. Includes the blog, projects list and basic info about the group.
HTML
153
star
3

offenegesetze.de

⚖️ Wir öffnen das Bundesgesetzblatt
JavaScript
84
star
4

offenerhaushalt.de

Visualize budgets from various levels of the German government; based on the OpenSpending API
CSS
58
star
5

wahldaten

Repo für alle möglichen Wahldaten
37
star
6

dokukratie

Scraper for German democracy documents
Python
32
star
7

awesome-behoerden-floss

Auflistung Freier/Libre-Open-Source-Software, die bereits im öffentlichen Dienst genutzt oder gar selbst betrieben wird. Ergänzungen aus der Praxis gerne gesehen!
31
star
8

rettedeinennahverkehr

Aktionsseite für Offene Fahrplandaten statt vernagelter Systeme
HTML
30
star
9

offenesparlament.de

German parliament (Bundestag and Bundesrat) legislative tracker. Also check the updated crawlers at http://github.com/bundestag
SCSS
29
star
10

offeneregister.de

OffeneRegister.de – Offene Daten für das Handelsregister
HTML
27
star
11

codefor.de

The website at codefor.de
SCSS
26
star
12

api.offenegesetze.de

⚙️ Das Backend zu OffeneGesetze.de
Python
24
star
13

handelsregister-backup

Backup tool for structured data at handelsregister.de
Python
22
star
14

sehrgutachten

Volltextsuche und Feeds für die Gutachten des Wissenschaftlichen Dienstes des Bundestags.
Ruby
20
star
15

okfn.de

Die Webseite der Open Knowledge Foundation Deutschland.
Rich Text Format
14
star
16

edulabs

Ruby
14
star
17

hackathon-leitfaden

TeX
13
star
18

old.okfn.de

Die alte Webseite der Open Knowledge Foundation Deutschland.
Rich Text Format
11
star
19

bundesrat-scraper

Voting behaviour in Bundesrat
Python
10
star
20

frontex-captcha-solver

Python
10
star
21

energyhack

Die Webseite des Energyhack Berlin
HTML
9
star
22

froide-govplan

Basis of FragDenStaat.de's „Koalitionstracker“
Python
9
star
23

fragdenstaat.de-ansible

Ansible Deployment for fragdenstaat.de
Jinja
9
star
24

koalitionstracker

CSS
9
star
25

eucopyright

Website for the public consultation on the review of the EU copyright rules
HTML
9
star
26

2030-watch.de

Former website of 2030Watch
JavaScript
8
star
27

farmsubsidy.org

FarmSubsidy website and search
Python
8
star
28

transparenzranking.de

Transparenzranking.de vergleicht alle Transparenzregelungen Deutschlands
Vue
7
star
29

storyhunt-workshops

The Repo for the Workshops of the 2017 Story Hunt Edition
7
star
30

django-filingcabinet

PDF document viewer Django app
Python
7
star
31

2030watch

Website for 2030Watch
Vue
6
star
32

stadtlandcode.de

StadtLandCode Home Page
HTML
6
star
33

matomo-slack-bot

JavaScript
6
star
34

odm-datenerfassung

Various tools to gather data on open data provided by German city/town web portals
Python
5
star
35

jugendhackt-theme

Wordpress theme for jugendhackt.de
CSS
5
star
36

froide-food

„Topf Secret“-App
Python
5
star
37

opendataranking.de

OpenDataRanking.de vergleicht den Stand von Open Data in Bund und Ländern
Vue
5
star
38

de.opendataday.org

Old German web site for the 2014 Open Data Day - for the current see https://github.com/okfn/opendataday
HTML
5
star
39

ifg-urteile

Alle deutschen Gerichtsurteile mit Bezug zu Informationsfreiheit
JavaScript
4
star
40

ckanext-offenedaten

CKAN extension for OffeneDaten.de (theme/UI & harvesters)
Python
4
star
41

staedte-gemeinden-verwaltungen

Städte, Gemeinden und deren Verwaltungen
4
star
42

proto-auth

web based ldap interface for Prototypefund
Ruby
4
star
43

datenschule.de

Repository of the website for OKF Datenschule
JavaScript
4
star
44

transparenzgesetz.de

Astro
3
star
45

lebensmittel-kontrollergebnisse-data

3
star
46

prototypefund

prelaunch site
CSS
3
star
47

froide-theme

Base theme for Froide
Python
3
star
48

froide-campaign

Campaign app for froide
Python
3
star
49

offenerhaushalt-daten

Jupyter Notebook
3
star
50

dokukratie.de

Dokukratie.de Website
CSS
3
star
51

demokratielabore

HTML
3
star
52

farmsubsidy-store

Cleaning scripts and backend api for farmsubsidy website
Python
3
star
53

app.fragdenstaat.de

📱 Website for FragDenStaat Mobile App
HTML
3
star
54

IFG-Karte

Übersichtskarte zu den Regelungen der Informationsfreiheit in Deutschland
HTML
3
star
55

opentender.eu

procurement portals for the DIGIWHIST project
HTML
3
star
56

signmob

JavaScript
2
star
57

citylab.berlin

CSS
2
star
58

open-hardware-allianz

Webpage Open Hardware Allianz - The Network for Open Hardware in Germany
SCSS
2
star
59

wo-ist-vera.de

Vue
2
star
60

frontex-assets

Jupyter Notebook
2
star
61

spk-inventory

Inventory data of Stiftung Preußischer Kulturbesitz.
JavaScript
2
star
62

jh-pixels

Pixel für Jugend Hackt
JavaScript
2
star
63

000000.limited

HTML
2
star
64

behoerden-online-dienste.de

Repository for behoerden-online-dienste.de
JavaScript
2
star
65

squarelet

Vue
2
star
66

map.vernetztewelten.org

UMap-Deployment für VernetzteWelten.org
Python
2
star
67

opendataincubator.eu

Open Data Incubator for Europe project website
PHP
2
star
68

appsandthecity

Apps and the City Network
CSS
2
star
69

bundetsag

HTML
2
star
70

jh-lauch-theme

Das neue Wordpress Theme für Jugend hackt
PHP
2
star
71

hackyourcity

Hack your City
HTML
2
star
72

buendnis-f5

HTML
2
star
73

demolabs-ungehoersam

JavaScript
2
star
74

froide-legalaction

Froide app that collects law suit proposals from FOIA requests
Python
2
star
75

cologne.appsandthecity

Apps and the City Page for Cologne
HTML
2
star
76

berlin.appsandthecity

Apps and the City Page for Berlin
HTML
2
star
77

fcdocs-annotate

Python
1
star
78

froide-crowdfunding

Python
1
star
79

ifg-verfahren

Liste laufender Verwaltungsstreitigkeiten im Zusammenhang mit Informationsfreiheit
1
star
80

infra

Nginx
1
star
81

security-knowlunch

Slidedeck
HTML
1
star
82

os-data-scraper

OpenSpending Scrapers
JavaScript
1
star
83

blog.fragdenstaat.de

HTML
1
star
84

fragdenstaat.de-infra

Docker deployment of FragDenStaat.de
1
star
85

odine-map

JavaScript
1
star
86

storyhunt.de

website for https://storyhunt.de
JavaScript
1
star
87

okf-pub

Jekyll theme for online publications
Sass
1
star
88

bwhere

Visualisierung der Standorte von Werbetafeln der Bundeswehr in Berlin
JavaScript
1
star
89

django-amenities

Django App to import and store OpenStreetMap nodes
Python
1
star
90

2019.okfn.de

Tätigkeitsbericht 2019
Ruby
1
star
91

turing-bus

New website for Turing-Bus
HTML
1
star
92

fds-shop

JavaScript
1
star
93

the-news-reads-us

In soviet russia, the news reads you!
JavaScript
1
star
94

odmonitormap

HTML
1
star
95

entwicklungsbarometer

Website for the Entwicklungsbaromoter
CSS
1
star
96

ifg.md

Informationsfreiheitsgesetze von Bund und Ländern im Markdown-Format
1
star
97

lebensmittel-kontrollergebnisse-scraper

Scraper for lebensmittel-kontrollergebnisse.de. Currently only working with Pankow.
JavaScript
1
star
98

haushaltberlin

JavaScript
1
star
99

2018.okfn.de

Tätigkeitsbericht 2018
Ruby
1
star
100

froide-payment

Python
1
star