HackerTrans
TopNewTrendsCommentsPastAskShowJobs

grski_

no profile record

Submissions

FastAPI-pdf: Yet Another FastaAPI boilerplate with pugsql, dbmate, FastAPI

github.com
3 points·by grski_·3 yıl önce·2 comments

comments

grski_
·3 yıl önce·discuss
A little project we've written for fun with my student. It's Yet Another FastaAPI boilerplate, but done in a non-typical manner. pdf stands for Pugsql + dbmate + fastapi, or as I call it PDF stack. pugsql is used instead of an ORM. dbmate to run migrations (hand-written!) Feeling the 90s vibes yet? Hope you do. I also hope you learn yourself some SQL for the greater good.

It uses #fastapi #pugsql #dbmate #sql. #postgresql for the database. gunicorn + uvicorn. Env based settings. #pydantic ofc Fully conteinarized - #docker #poetry for env management. #sentry. Example of basic synchronous #stripe integration Example of basic httponly cookie magic link auth flow Example of basic synchronous email sending with #sendgrid

it's a cool project if you want to very quickly set up a simple small microservice eg. for stripe integrations, sending stuff to your customers after they bought it, creating newsletters and so on.

It's a very early version that's also used as a part of a mentorship programme of sorts I got going for young people or those in need, that are looking to , so expect a few rough edges. It was more about learning and exploration rather than perfection.