bsolomon1124 / flask-hello-world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-hello-world

Ported from flaskr so that I can experiment with stuff.

Requires:

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

About

License:MIT License


Languages

Language:Python 89.5%Language:TSQL 10.5%