Stadtratmonitor – Frontend https://stadtratmonitor.leipzig.codefor.de
Find a file
dependabot[bot] 85146cf55f
Bump puma from 6.2.2 to 6.3.1
Bumps [puma](https://github.com/puma/puma) from 6.2.2 to 6.3.1.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v6.2.2...v6.3.1)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 22:11:05 +00:00
.github/workflows improve containers 2023-05-10 22:08:36 +02:00
.vscode Update 2023 2023-03-29 21:02:52 +02:00
app truncate direct method 2023-04-30 01:00:24 +02:00
bin update versions 2023-04-02 13:28:57 +02:00
config use SHARED_IMPORT_SECRET 2023-04-29 22:58:51 +02:00
container improve containers 2023-05-10 22:08:36 +02:00
db remove migrate 2023-04-07 21:58:47 +02:00
docker/elasticsearch run docker container without root users, fix broken links 2023-04-16 12:52:38 +02:00
lib improve containers 2023-05-10 22:08:36 +02:00
log Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
public update to node 18 2023-04-08 00:01:31 +02:00
spec Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
vendor update versions 2023-04-02 13:28:57 +02:00
.dockerignore Add Dockerfile and docker-compose config 2016-01-23 20:33:02 +01:00
.env.sample add .env variable USER_ID 2023-05-02 19:52:28 +02:00
.gitignore remove .sass-cache 2023-05-03 21:25:30 +02:00
.project added .travis.yml 2016-03-02 20:05:12 +01:00
.rspec add rspec config 2016-02-17 07:58:57 +01:00
.rubocop.yml Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
.rubocop_todo.yml Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
.ruby-version use 3.2.2 2023-04-08 00:35:36 +02:00
config.ru Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
docker-compose.yml improve containers 2023-05-10 22:08:36 +02:00
Gemfile use 3.2.2 2023-04-08 00:35:36 +02:00
Gemfile.lock Bump puma from 6.2.2 to 6.3.1 2023-08-18 22:11:05 +00:00
Guardfile Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
input.json improve containers 2023-05-10 22:08:36 +02:00
LICENSE Initial commit 2014-11-19 17:03:06 +01:00
package.json Improve setup: build app before starting container (#85) 2023-05-24 19:41:00 +02:00
Rakefile Fix a bunch of rubocop offenses 2020-03-11 14:29:50 +01:00
README.md Improve setup: build app before starting container (#85) 2023-05-24 19:41:00 +02:00
yarn.lock Improve setup: build app before starting container (#85) 2023-05-24 19:41:00 +02:00

Stadtratmonitor

Offical site: stadtratmonitor.leipzig.codefor.de

Usage / Features

The Stadtratmonitor Leipzig is a lightweight user interface for performing full text searches against paper contents issued to the city council of Leipzig. Note, this solution uses the data from Ratsinformationssystem Leipzig that also offers text search capabilities.

Sorting

  • Sort by date, paper was issued

Papers sorted by publishing date

  • Sort by relevance, e.g. how often the search keyword appears inside the title resp. the content of the paper

Papers sorted by relevance

Filtering

  • By paper type

Filter by paper type

  • By originator

Filter by originator

Staying up-to-date

General

Example using Firefox and RSSOWL

Click on the newsfeed icon in the address bar Abonnieren mit Firefox

Copy the URL from the address bar RSS URL in Firefox

Create a new Feed in RSSOWL and paste the just copied URL in the form RSSOWL Feed

When updating the feed in RSSOWL (or any other RSS reader of your choice) time after time all new papers matching the search query criteria will appear.

Setup

There are two ways to run this app: using a local development setup, or using docker.

Local machine setup

  1. Install Ruby, Bundler, Elasticsearch
  2. Start Elasticsearch: elasticsearch
  3. Setup Rails app: bundle && bundle exec rake db:setup
  4. See “Importing data via Allris Scraper” below
  5. Start Rails server: bundle exec rails s
  6. Open localhost:3000

Using Container (Docker/Podman/…)

  1. Install Yarn
  2. Build the application: yarn && yarn build:css
  3. Install Docker and Docker Compose
  4. Start the application: docker-compose up
  5. Initialize the database: docker exec stadtratmonitor-web sh -c "rake db:setup && rake import_papers && rake index:rebuild"
  6. Open localhost:3000

Importing data via Allris Scraper (optional)

  1. You can use our Allris Scraper to download the papers (resp. their links) from the OPARL API, this will produce an input.json file
  2. Put this input.json to a public web server and set the URL to this file then in: app/controllers/import_controller.rb and lib/tasks/import_papers.rake

Running tests

Assuming docker and docker-compose is installed:

  1. docker-compose run web bin/run-tests