Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

theonion/bulbs2-elasticsearch

Repository files navigation

bulbs2-elasticsearch Build Status

your search is over

bulbs2-elasticsearch is a companion app to bulbs2 that enables multi-mapping searches.

Getting the Code

You can clone the code via git:

$ git clone https://github.com/theonion/bulbs2-elasticsearch.git

Alternatively, if you just want to use it in a Django application, you can install it via pip:

$ pip install -e git+https://github.com/theonion/bulbs2-elasticsearch.git#egg=bulbs2-elasticsearch

Note: since this is a far-afield project that may or may not be brought to production, I am refraining from adding it to the PyPI index.

Testing the Code

You will need a local elasticsearch database running in a separate terminal:

$ elasticsearch

To run the tests, clone the repository from GitHub (see steps above). You should then create a virtual environment with Python 3 and install the project to that:

$ cd /path/to/virtualenvs
$ virtualenv -p python3 bulbs2-elasticsearch
$ source bulbs2/bin/activate
$ cd /path/to/bulbs2-elasticsearch
$ python setup.py install
$ pip install -r requirements-dev.txt
$ py.test tests

If you don't have Elasticsearch on your system, you can brew install it:

$ brew install elasticsearch
$ brew linkapps

If you don't have Python 3 on your system, you can brew install it:

$ brew install python3
$ brew linkapps

If you don't have virtualenv on you system, you can pip install that:

$ pip install virtualenv

If you don't have brew installed, you can get that via:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If you don't have pip, install Python 2 and Python 3 via brew:

$ brew install python2 python3
$ brew linkapps

Releases

No releases published

Packages

No packages published

Languages