Ported from flaskr so that I can experiment with stuff.
Requires:
- PostgreSQL server and
psql
client
Make db:
$ createdb blog
Install it:
$ python -m pip install -e .
$ flask init-db
Run it:
FLASK_APP=blog FLASK_DEBUG=1 flask run
Request it:
$ curl \
--header "Content-Type: application/json" \
--request POST \
--data '{"title": "foo", "body": "foobar"}' \
localhost:5000/api/create