Skip to content

Latest commit

 

History

History
executable file
·
42 lines (33 loc) · 1.08 KB

File metadata and controls

executable file
·
42 lines (33 loc) · 1.08 KB

python-web-pyramid-api-chained-cockroachdb-single-node-without-ssl-pop

Description

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

Uses sqlalchemy and chained sql functions to query a table pop.

Remotely tested with testify.

Tech stack

  • python
    • pyramid
    • sqlalchemy
    • testify
    • requests
  • cockroachdb

Docker stack

  • python:latest
  • cockroachdb/cockroach:v19.2.4

To run

sudo ./install.sh -u

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

To stop (optional)

sudo ./install.sh -d

For help

sudo ./install.sh -h

Credit