Scratch work - learning FastAPI stuff again.
Go to file
Tyrel Souza f9a0e3c97e
readme
2022-10-14 15:37:53 -04:00
controllers comment 2022-10-14 14:39:57 -04:00
models fix imports 2022-10-14 14:34:11 -04:00
.gitignore initial commit 2022-10-14 13:52:31 -04:00
app.py organize 2022-10-14 14:16:52 -04:00
database.py initial commit 2022-10-14 13:52:31 -04:00
new.sql sql 2022-10-14 14:26:34 -04:00
README.md readme 2022-10-14 15:37:53 -04:00
requirements.txt initial commit 2022-10-14 13:52:31 -04:00
test.http clean http 2022-10-14 14:07:51 -04:00

Install

pip install -r requirements.txt

Run

python -m uvicorn app:app --reload

Note: First time touching FastAPI in this manner, so organization is not great. Any questions of "WTF?? Why did you do it this way?" - because it ended up that way, I have not worked on a project of this scope so moving LEGO bits around just worked.

Paired with https://gitea.tyrel.dev/tyrel/go-webservice-gin

based on: https://blog.balasundar.com/building-a-crud-app-with-fastapi-and-mysql