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

Simple web app that serves an api

Home Page:https://github.com/bearddan2000/python-web-bottle-api-dolt-chained-sql-simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Description

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

Uses sqlalchemy query a table dog using chained sql functions.

Remotely tested with testify.

Tech stack

  • python
    • bottle
    • sqlalchemy
    • testify
    • response
  • dolt

Docker stack

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

To run

sudo ./install.sh -u

  • Get all dogs: http://localhost/dog
    • Schema id, name, 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

Bottle sqlalchemy setup

About

Simple web app that serves an api

https://github.com/bearddan2000/python-web-bottle-api-dolt-chained-sql-simple


Languages

Language:Python 75.1%Language:Shell 21.2%Language:Dockerfile 3.7%