bearddan2000 / python-web-tornado-api-sqlserver-ssl-chained-sql-simple

Simple web app that serves an api

Home Page:https://github.com/bearddan2000/python-web-tornado-api-sqlserver-ssl-chained-sql-simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-web-tornado-api-sqlserver-ssl-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.

Sql server uses self-signed ssl.

Tech stack

  • python
    • tornado
    • sqlalchemy
    • testify
    • requests
  • mssql

Docker stack

  • alpine:edge
  • python:latest
  • mcr.microsoft.com/mssql/server:2017-CU17-ubuntu

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

About

Simple web app that serves an api

https://github.com/bearddan2000/python-web-tornado-api-sqlserver-ssl-chained-sql-simple


Languages

Language:Python 63.6%Language:Shell 24.7%Language:Dockerfile 10.0%Language:TSQL 1.7%