-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
62 lines (46 loc) · 1.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
= Language =
Python 2.6
= Libraries =
# Zlib on Ubuntu
aptitude install zlib1g-dev
# Python 2.7
wget http://python.org/ftp/python/2.7/Python-2.7.tgz
tar xzvf Python-2.7.tgz
cd Python-2.7
./configure ; make; sudo make install
# Setuptools
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
tar xzvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install
# Tornado
wget http://github.com/downloads/facebook/tornado/tornado-1.0.1.tar.gz
tar xvf tornado-1.0.1.tar.gz
cd tornado-1.0.1
sudo python setup.py install
# Twilio
wget http://github.com/twilio/twilio-python/tarball/2.0.8
tar xzvf twilio-twilio-python-2.0.8-0-ga6f6c40.tar.gz
cd twilio-twilio-python-a6f6c40/
python setup.py install
# MongoDB
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.6.2.tgz
tar xzvf mongodb-linux-x86_64-1.6.2.tgz
sudo mv mongodb-linux-x86_64-1.6.2 /usr/local
sudo ln -s -f /usr/local/mongodb-linux-x86_64-1.6.2 /usr/local/mongodb
# Pymongo
git clone git://github.com/mongodb/mongo-python-driver.git pymongo
cd pymongo/
sudo python setup.py install
# Dateutil
wget http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz
tar xzvf python-dateutil-1.5.tar.gz
cd python-dateutil-1.5
sudo python setup.py install
# PyTZ
sudo easy_install pytz
= Running the server =
In the project root directory, resale_web, do
python resale_web.py
= Conventions =
JSON methods return {'result':'OK'} or {'result':'failure', 'message':...}