Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 890 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 890 Bytes

SQLAlchemy Workshop

No More Raw SQL: SQLAlchemy, ORMs and asyncio

This repository contains the code for the Marketplace service demo to follow along the No More Raw SQL: SQLAlchemy, ORMs and asyncio workshop.

Please use this link for the workshop tutorial itself: SQLAlchemy Workshop

How to run this service?

  1. Build the Docker containers

    docker compose build
  2. In one terminal window, run

    docker compose run -p 9090:9090 marketsvc
  3. Once the service is running, you can interact with it over http using curl. We’ve created a simple shell script to make it easier for you to do so. For example,

    ./run.sh ordertotal 2

    which is equivalent to

    curl http://localhost:9090/api/order_total?order_id=2