https://github.com/cdeil/sqlalchemy-workshop
https://github.com/cdeil/sqlalchemy-workshop
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdeil/sqlalchemy-workshop
- Owner: cdeil
- License: mit
- Created: 2024-04-22T09:41:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T09:41:43.000Z (about 2 years ago)
- Last Synced: 2025-02-08T16:41:30.932Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://aelsayed95.github.io/sqlalchemy-wkshop/)
### How to run this service?
1. Build the Docker containers
```console
docker compose build
```
2. In one terminal window, run
```console
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,
```console
./run.sh ordertotal 2
```
which is equivalent to
```console
curl http://localhost:9090/api/order_total?order_id=2
```