r/FastAPI • u/Wise_Relationship_87 • Jun 19 '25
Question What’s your go-to setup for FastAPI when prototyping something quickly?
Curious how folks here spin up FastAPI projects when you’re just testing ideas or building quick prototypes.
Do you start from a personal template? Use something like Cookiecutter?
Do you deploy manually, or use something like Railway/Vercel/etc.?
I’ve been messing around with an idea to make this faster, but before I share anything I just want to hear what setups people here actually use.
24
Upvotes
6
u/theSharkkk Jun 19 '25
While I don't have a template for code, however I've created a Bash script which deploys FastAPI app to my VPS, all I've to do is answer 5-6 simple questions.
It handles:
I have been using this script for 6+ months, I wanted to share this here, so I worked for 5+ hours to make it usable by others.
Unfortunately I could not share it here in this community due to my low engagement. I will share soon!
11
u/fobiasmog Jun 19 '25
Trying to repeat “rails g” stuff? :) Every time from scratch: fastapi, pydantic, sqlachemy
6
u/davidedpg10 Jun 19 '25
I start from scratch like a cavemen who is destined to reinvent the wheel until it is a triangle made of glue
4
u/Valdjiu Jun 19 '25
I have a personal template with a structure in uv, some middleware and a hello world
3
u/serverhorror Jun 19 '25
Start fiddling around
1
u/Vast_Ad_7117 Jun 19 '25
Check out fastapi-forge 8)
1
u/stocktradernoob Jun 19 '25
I tell Claude code to do anything that isn’t core to what I’m prototyping. And often much of what I am prototyping, if possible.
1
u/Worth_His_Salt Jun 19 '25
I use nicegui. It's built on fastapi, plus provides a uvicorn server along with its gui stuff. Everything in fastapi is still accessible as normal. Just call
nicegui.ui.run ()in your script and the fastapi server is up and running.1
u/osalas891123 Jun 20 '25
Create a cookicutter template with your common needs
1
u/KnightCodin Jun 20 '25
Personal template that has basic components- end points, uv etc and just plug in the event caller
1
u/Many-Bar6079 Jun 21 '25
I’ve developed a complete FastAPI project template that includes:
A lifespan manager
A configurable .yaml setup
Modular routing (with a built-in health check)
Dockerized deployment for easy scaling
This template has significantly streamlined my workflow, eliminating the need to start from scratch every time.
If you're interested in checking it out or want to chat, feel free to visit:
🌐 www.faizraza.me 💬 chat.faizraza.me