blob: cfdffddcdf03666bc8329896f63d71464681da15 (
plain)
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
|
# 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]]"
```
|