Stadtratmonitor – Frontend https://stadtratmonitor.leipzig.codefor.de
Find a file
2016-03-02 21:38:57 +01:00
app Add spec for search result pagination 2016-02-24 11:39:12 +01:00
bin Update spring gem 2016-03-02 21:06:26 +01:00
config Fix deprecation warning in test environment 2016-02-17 20:56:26 +01:00
db Add paper_searches table 2015-11-23 22:10:45 +01:00
lib Add rake task to rebuild paper index 2016-01-23 20:32:37 +01:00
log Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
public Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
spec Fix 503 errors in tests from Elasticsearch due to cluster not being ready 2016-03-02 20:28:20 +01:00
test Move factories to spec dir and add helper module 2016-02-19 08:39:30 +01:00
vendor/assets Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
.dockerignore Add Dockerfile and docker-compose config 2016-01-23 20:33:02 +01:00
.gitignore gitignore .vagrant dir 2016-01-23 20:31:40 +01: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
.ruby-version Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
.travis.yml no encryption key 2016-03-02 20:47:50 +01:00
config.ru Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
docker-compose.yml Add Dockerfile and docker-compose config 2016-01-23 20:33:02 +01:00
Dockerfile Add Dockerfile and docker-compose config 2016-01-23 20:33:02 +01:00
Gemfile Disable guard notifier for now because !crossplatform 2016-02-24 19:16:48 +01:00
Gemfile.lock Update spring gem 2016-03-02 21:06:26 +01:00
Guardfile Add guard file watcher 2016-02-18 08:41:45 +01:00
LICENSE Initial commit 2014-11-19 17:03:06 +01:00
Rakefile Start with a Rails app with authentication via Persona, Foundation CSS 2014-11-19 18:48:28 +01:00
README.md Update README with more up-to-date installation instructions 2016-03-02 21:38:57 +01:00

Stadtratmonitor

Build Status

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" below
  5. Start Rails server: bundle exec rails s
  6. Visit http://localhost:3000

Using docker

  1. Install docker and docker-compose: https://docs.docker.com/compose/install/
  2. Start the app: docker-compose up
  3. Initialize the database: docker-compose run web rake db:setup
  4. See "Importing data" below
  5. Get the address of the docker host: docker-machine ip default
  6. Point your browser to: 'http://<IP of docker host>:3000'

Importing data and building the index

  1. Currently an API key for morph is required: cp config/morph.yml.example config/morph.yml Edit the morph.yml file and insert the Morph API key
  2. Import the data from our scraper: docker-compose run web rake import_papers
  3. Build the elasticsearch index: docker-compose run web rake index:rebuild