Skip to content

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

Notifications You must be signed in to change notification settings

warsztatywww/supernova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Supernova

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

Installation

$ git clone [email protected]: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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published