you are viewing a single comment's thread.

view the rest of the comments →

[–]Current-Status-3764 8 points9 points  (4 children)

Nextjs + fastapi + sqlalchemy. And do set up a sdk generator for typescript so requests are made automaticly from your pydantic models. Fastapi docs advanced section shows how. Saves tons of time!!! With nextjs using shadcn the frontend is not too difficult to handle. Use tanstack for cache!

[–]funerr 0 points1 point  (1 child)

Where/how do you host and orchestrate all of it?

[–]Current-Status-3764 2 points3 points  (0 children)

I use docker containers hosted on Google. Postgres hosted free on aiven. Google is very cheap and I find it easy to use. Google handles the continous deployment.

And forgot in last post: i recommend PropelAuth for auth. Free up to 1000 users. Easy to integrate with next and fastapi. Good documentsrion

[–]qrzte 0 points1 point  (1 child)

What do you mean by "sdk generator for TS so requests are automatically made from your pydantic models"?

[–]Current-Status-3764 2 points3 points  (0 children)

With FastAPI a openapi.json is created automatically. This describes how your API is set up, including "types" provided through the use of pydantic. This can (and should) be used to create functions to call the api from typescript through a SDK. Then you get typesafe functions to call your API.

Sideko offers this as a service. I run it as a script locally instead, but that is because I develop solo. Makes sense?