Skip to content

Latest commit

 

History

History
74 lines (40 loc) · 1.27 KB

README.md

File metadata and controls

74 lines (40 loc) · 1.27 KB

cyclee_server

Build Status

Getting Started

The cyclee server requires postgresql and postgis. To install these on a debian based system, run the following command:

apt-get install postgresql postgis postgresql-9.1-postgis

Check out the code from the repo:

git clone git@github.com:Cyclee/cyclee_server.git

Always use a virtualenv when working on python projects, I suggest virtualenv-wrapper. Create a new env:

mkvirtualenv cyclee

Install the python requirements.:

python setup.py develop

And run the development server:

pserver development.ini --reload

Testing

You need to create a test postgresql database.:

createdb cyclee_test

And it must have the postgis extensions installed. To run the test suite, use the following command:

 python setup.py test

Production

REST API

The rest api:

GET      /traces
POST     /traces

GET       /traces/{id}
POST      /traces/{id}
DELETE    /traces/{id}


GET      /rides
POST     /rides


GET      /rides/{id}
POST     /rides/{id}
DELETE   /rides/{id}

GET     /rides/{id}/traces