Skip to content

bearddan2000/python-web-tornado-api-dolt-chained-sql-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-web-tornado-api-dolt-chained-sql-simple

Description

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

Uses sqlalchemy chained sql functions to query a table dog.

Remotely tested with testify.

Tech stack

  • python
    • tornado
    • sqlalchemy
    • testify
    • requests
  • dolt

Docker stack

  • python:latest
  • dolthub/dolt-sql-serverdb:latest

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