Skip to content

Spike for indexing data from the Open Ahjo API in elasticsearch

Notifications You must be signed in to change notification settings

d-cent/decisionsproto

Repository files navigation

##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

About

Spike for indexing data from the Open Ahjo API in elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published