Total Pageviews

Wednesday, 13 January 2016

paste2image

a tornado+mongodb web app similar to paste2.org; the difference: paste text, get image.

  • Paste2Image is a web app which can convert text to image.
  • Paste2Image is based on Tornado.web + MongoEngine + MongoDB
  • This can be a very simple demonstration of how these tools can work together.
  • There's no documentation except the source code itself.

Installation

Make sure you have the following packages installed
  • sudo apt-get install python-setuptools python-imaging
  • sudo easy_install -U mongoengine tornado pygments
Install Mongodb
Then clone this repository and run
  • git clone git://github.com/observerss/paste2image.git
  • python paste2image.py --port=8888
visit http://localhost:8888 for test

Dependencies

  • tornado.web tested with 2.0
  • mongoengine tested with 0.4
  • mongodb tested with 1.8.2
  • pygments tested with 1.4

Deployment


  • Please refer to tornado.web's doc for deployment.
from https://github.com/observerss/paste2image