- Python (2.7)
- pip
easy_install pip
- virtualenv
pip install virtualenv
Set up a python virtual environment however you want. Here's a simple way to do that:
mkdir lexTerm && cd lexTerm
virtualenv --no-site-packages server
cd server
source bin/activate
Clone the source repository from GitHub:
git clone [email protected]:LexTerm/LexTermServer.git lexTerm
cd lexTerm
Install all python dependencies in the virtual environment
pip install -r requirements.txt
Initialize the sqlite database
./manage.py syncdb
./manage.py runserver
API documentation can be found at http://docs.lexterm.apiary.io/
Apiary provides a mock server which can be used for development. Here's an example of using it with cURL:
curl --include "http://lexterm.apiary.io/api"
- ssh onto the server
- create a virtual environment
git clone https://github.com/LexTerm/LexTermServer.git lexTerm
cd lexTerm
mkdir static
- In the webserver document root do
ln -s path/to/lexTerm/static static
- follow the django instructions [here] (https://docs.djangoproject.com/en/1.5/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache)
- to update, simply
git pull
in the repository - make sure to run
./manage.py syncdb
if any changes were made to database schemas