falcon-sqlalchemy-demo icon indicating copy to clipboard operation
falcon-sqlalchemy-demo copied to clipboard

A demo app using Python's falcon web framework using sqlalchemy for persistence and alembic for migrations

Falcon-SQLAlchemy Demo

Run the development server

./run_dev_server.sh

Run tests

./test.sh

Test the application manually with curl

curl -X POST "http://localhost:8000/people" -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"name": "Lionel Messi"}' -w "\n"
curl "http://localhost:8000/people" -H 'Accept: application/json' -w "\n"
curl -X GET "http://localhost:8000/people/1" -H 'Accept: application/json' -w "\n"
curl -X DELETE "http://localhost:8000/people/1" -H 'Accept: application/json'
curl "http://localhost:8000/people" -H 'Accept: application/json' -w "\n"