Skip to content

Latest commit

 

History

History
executable file
Β·
41 lines (32 loc) Β· 950 Bytes

File metadata and controls

executable file
Β·
41 lines (32 loc) Β· 950 Bytes

python-web-tornado-api-posgres-raw-sql-simple

Description

Simple web app that serves an api for a tornado project.

Uses sqlalchemy and raw sql to query a table dog.

Remotely tested with testify.

Tech stack

  • python
    • tornado
    • sqlalchemy
    • testify
    • requests

Docker stack

  • python:latest
  • postgres:alpine

To run

sudo ./install.sh -u

  • Get all dogs: http://localhost/dog
    • Schema id, breed, and color
  • CRUD opperations
    • Create: curl -i -X PUT localhost/dog/
    • Read: http://localhost/dog/
    • Update: curl -i -X POST localhost/dog///
    • Delete: curl -i -X DELETE localhost/dog/

To stop

sudo ./install.sh -d

For help

sudo ./install.sh -h

Credit