85146cf55f
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> |
||
---|---|---|
.github/workflows | ||
.vscode | ||
app | ||
bin | ||
config | ||
container | ||
db | ||
docker/elasticsearch | ||
lib | ||
log | ||
public | ||
spec | ||
vendor | ||
.dockerignore | ||
.env.sample | ||
.gitignore | ||
.project | ||
.rspec | ||
.rubocop.yml | ||
.rubocop_todo.yml | ||
.ruby-version | ||
config.ru | ||
docker-compose.yml | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
input.json | ||
LICENSE | ||
package.json | ||
Rakefile | ||
README.md | ||
yarn.lock |
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
- Sort by relevance, e.g. how often the search keyword appears inside the title resp. the content of the paper
Filtering
- By paper type
- By originator
Staying up-to-date
General
- Subscribing
- Google Chrome RSS extension
- Firefox RSS extension
- Reading
- Google Chrome Extension
- Firefox Extension
- RSSOWL
Example using Firefox and RSSOWL
Click on the newsfeed icon in the address bar
Copy the URL from the address bar
Create a new Feed in RSSOWL and paste the just copied URL in the form
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
- Install Ruby, Bundler, Elasticsearch
- Start Elasticsearch:
elasticsearch
- Setup Rails app:
bundle && bundle exec rake db:setup
- See “Importing data via Allris Scraper” below
- Start Rails server:
bundle exec rails s
- Open localhost:3000
Using Container (Docker/Podman/…)
- Install Yarn
- Build the application:
yarn && yarn build:css
- Install Docker and Docker Compose
- Start the application:
docker-compose up
- Initialize the database:
docker exec stadtratmonitor-web sh -c "rake db:setup && rake import_papers && rake index:rebuild"
- Open localhost:3000
Importing data via Allris Scraper (optional)
- You can use our Allris Scraper to download the papers (resp. their links) from the OPARL API, this will produce an input.json file
- Put this input.json to a public web server and set the URL to this file then in:
app/controllers/import_controller.rb
andlib/tasks/import_papers.rake
Running tests
Assuming docker and docker-compose is installed:
docker-compose run web bin/run-tests