Spike for indexing data from the Open Ahjo API in elasticsearch
Python CSS HTML Shell JavaScript Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
helsinki
ops
sass
tests
.gitignore
.pep8
MANIFEST.in
README.md
backup.sh
deploy.sh
gulpfile.js
package.json
pre_push.sh
requirements.txt
requirements_for_tests.txt
setup.py

README.md

##Getting Started

###You will need

  • MongoDB
  • Elasticsearch

To be running on localhost

###Install Dependencies

pip install -r requirements.txt

###Running the server

python main.py

Run with --reindex to load the data from OpenAhjo into elasticsearch

Run with --debug for live reloading and stack traces

###Sending Notifications

To send notifications you will need to have your mailgun credentials in mailgun.json (see the example file). Then run

python main.py --mailshot

###Tests

Before pushing:

./pre_push.sh

#####Unit tests:

nosetests

To include print output:

nosetests -s

#####Code style checks:

pep8 .

##Front End

Default will watch the sass:

gulp

To output minified css:

gulp build --production true