diff options
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1 +1,30 @@ # Traces 5 API + +## Dev + +```bash +$ mkvirtualenv traces +$ pip install -r requirements.txt +$ python app.py +``` + +### Database + +Requires running PostgreSQL instance. + +```bash +$ createdb traces +``` + +Then in a Python shell: + +```python +>>> from app import db +>>> db.create_all() +``` + +## Testing + +```bash +$ curl http://localhost:5000/traces -X POST -d "page=homepage" -d "trace=[[1,5],[6,6],[9,14],[23,77]]" +``` |
