Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 919 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 919 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.

Workshop instructions can be found here

How to run this service?

  1. Create a python virtual environment and activate it:

    python3.12 -m venv ./venv
    source ./venv/bin/activate
  2. Install your service dependencies:

    python3.12 -m pip install -r requirements.txt
  3. Run the service:

    ./run.sh run

    which is equivalent to

    python3.12 marketsvc/server.py
  4. In a new terminal window, run the curl commands:

    ./run.sh customers

    which is equivalent to

    curl http://localhost:9090/api/customers