Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 968 Bytes

README.md

File metadata and controls

51 lines (30 loc) · 968 Bytes

Supernova

The best web search written in 3 days on Summer Scientific Schools.

Installation

$ git clone git@github.com:pathes/supernova.git
$ cd supernova

$ virtualenv .  # or: virtualenv -p python3 .
$ . bin/activate

$ pip install -r requirements.txt
# if does not work, start with with installing Django
$ pip install https://www.djangoproject.com/download/1.7c3/tarball/

$ supernova/manage.py migrate

Run

$ supernova/manage.py runserver

Celery

$ rabbitmq-server
$ celery -A supernova worker --loglevel=debug

To test:

$ ./manage.py shell

>>> from bot import tasks
>>> x = tasks.add.delay(5,5)  # or with other function from tasks
>>> x.status
'SUCCESS'
>>> x.get()
10

To clear pending tasks from queue:

celery purge

Pagerank

Go to pagerank directory and compile C++ pagerank calculator:

cd pagerank
make