Commit 4dde4134e0bbbed8047373421b9de5b6a5a0980f

  • avatar
  • arvind
  • Mon Jul 08 19:57:05 IST 2013
Adding README and requirements.txt.
README
(29 / 0)
  
1==REQUIREMENTS==
2--python packages--
3Flask
4pymongo
5oursql
6requests
7lxml
8sweetmaker
9
10--applications--
11mySQL
12MongoDB
13libxml
14libxslt
15
16
17==CONFIGURATION==
18Copy the sampleConf.py and sampleConfig.js file to conf.py and config.js, respectively, and modify the files.
19
20
21==INSTALL==
22To install the required dependencies, use the following command when inside the top level directory of the project.
23$python setup.py develop
24
25After the packages and dependencies have been satisfied, the application can be started by,
26$python alipi.py
27
28==DEPLOYMENT==
29Alipi is a flask application. To deploy flask applications, please see http://flask.pocoo.org/docs/deploying/#deployment
README.org
(0 / 16)
  
1* Alipi
2 Alipi is re-narration web framework.
3
4 [[http://a11y.in]]
5
6 [[http://alipi.us]]
7
8** Setup
9 + =$python setup.py develop=
10 + You will also need to install
11 - MongoDB
12
13 Check http://mongodb.org for installation notes.
14 - mod_wsgi
15
16 =$ sudo aptitude install libapache2-mod-wsgi=
  
11#This is a samply config file. Create a file named conf.py,in this directory, and decalre the following variables there.
22#DO NOT EDIT THIS FILE. This file is not read for config changes
3APPURL = ('http://foo/bar',) # The path which points to "alipi" directory.
3APPURL = ('http://y.a11y.in',) # The path which points to "alipi" directory.
44JQUERYURL = ('http://foo.jquery',) #URL for jquery.
5PASSWD = ('password',)
6BLOGURL = ('http://something.blogspot.com',)
7EMAIL = ('johnDoe@gmail.com',)
8DEPLOYURL = ('http://127.0.0.1:5000/',)
5JQUERYUI = ('http://y.a11y.in/apis',) #URL for loading jQuery UI theme and widgets
6JQUERYCSS = ('http://y.a11y.in/apis',) #URL for loading custom jQuery CSS
7PASSWD = ('password',) #Deprecated
8BLOGURL = ('http://something.blogspot.com',) #Temporarily deprecated.
9EMAIL = ('johnDoe@gmail.com',) #Deprecated
10DEPLOYURL = ('http://y.a11y.in/app',) #URL pointing to the application
11DBNAME = ('test',) #mySQL db for holding a list of language and location
12DBPASSWD = ('admin',) #mySQL password
13DBUSRNAME = ('sql_password',) #mySQL user with read access to the DBNAME
14DBHOST = ('localhost',)
15MONGODB = ('alipi',) #Name of the database in MongoDB
16SWEETURL = ('http://demo.swtr.us',) #URL to a sweet store
17SWEET_STORE_ADD = ("http://demo.swtr.us/add",) #The specific API endpoint for submitting sweets
  
11//A sample configuration file for JS variables. Copy this file to "config.js"
2/*config['hostname'] = "hostname of the domain from the application is served"
3 * config['deploy'] = "URL of where the application is deployed, same as DEPLOYURL in conf.py"
4 * config['root'] = "Same as APPURL from conf.py"
5 * config['sweet'] = "URL for the sweet store, same as SWEETURL from conf.py"
6 */
27var config = {
3 'hostname': "127.0.0.1",
4 'deploy': "http://127.0.0.1:5000",
5 'root': "http://localhost"
8 'hostname': "y.a11y.in",
9 'deploy': "http://y.a11y.in/web",
10 'root': "http://y.a11y.in",
11 'sweet': "http://demo.swtr.us"
612}
  
1Flask
2GData
1Flask
32lxml
43oursql
54pymongo
5requests