up /

Filename Size Date modified Message
809 B
3.9 KB
1.1 KB
4.7 KB

A simple example of a picture uploader that asynchronously
resizes the pictures via an AMQP queue.

Author: Yoan Blanc <yoan@@dosimple.ch>
License: MIT

Installing it

 * Install python libraries:

   $ easy_install webob
   $ easy_install paste
   $ git clone git://github.com/greut/jessica.git
   $ cd jessica
   $ python setup.py install

 * create the directories:
   $ mkdir tmp
   $ mkdir -p pictures/thumb
   $ mkdir -p pictures/medium
   $ mkdir -p pictures/original

 * get RabbitMQ running

   * download: http://www.rabbitmq.com/server.html
   * untar
   * move into
   $ make run

Running it

 * run the image resizer

   $ python consumer.py

 * run the web application

   $ python wsgi.py

 * and try it: http://localhost:8080/

That's all folks!

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.