A good starter to mess around in is this project https://github.com/tiangolo/full-stack-fastapi-postgresql