r/FastAPI • • Oct 12 '26

feedback request Built my first real FastAPI project a few months ago, it finally has a proper frontend now

Some of you might recognize the repo. I posted an earlier version here it was basically just a FastAPI backend and Swagger docs. A few people gave it really useful feedback then the market-data part stopped working, so I deleted the post instead of pretending it was fine.

It’s working again now, and it has an actual frontend.

It’s a stock research/watchlist app I use myself. I'm from finanace background, I trade, and I wanted somewhere to track stocks and write research notes that save the price I was looking at when I wrote them. It tracks 14 market indices and supports stock watchlists, quotes, news, and notes.

The stack is FastAPI, async SQLAlchemy, Postgres, JWT auth, Docker, and a small HTML/CSS/JS frontend.

The most annoying bug was that Yahoo Finance worked locally but started returning '401 Invalid Crumb' errors from Render. I changed the quote path to fall back to Yahoo’s chart/history data, and added RSS sources for news when the main news path fails. It took longer than I expected to get local and deployed behavior lined up.

Note: This isn’t a trading platform, and it’s definitely not finished. I’m posting it again because it’s now more than API docs, and because the last round of feedback was genuinely helpful. If you spot something badly designed, confusing, or fragile, I’d rather hear it.

Repo: https://github.com/ah4ddd/first-order

I’m leaving the live Render URL out of the post; it’s linked from the repo for anyone who wants to try it.

34 Upvotes

15 comments sorted by

6

u/Leonjy92 Oct 13 '26

Huge congratulations on the progress!!! And yes, I'm one of those who remember the repo from your earlier post.

Moving forward, I'd suggest adding automated tests, linting, and perhaps type checking while the project is still in its early stages. These will help improve code quality and maintainability as the project grows.

Wishing you continued success!

3

u/justahappycamper1 Oct 13 '26

Thanks for the suggestions adding tests is the obvious next step and could you clarify what you mean by type checking? FastAPI already handles validation through Pydantic, so I’m curious what else you’d recommend I’ll keep improving and maintaining the project since I want it to be a solid portfolio piece

1

u/Leonjy92 Oct 13 '26

Yeah, Pydantic handles runtime validation, while type checkers like Mypy or Pyrefly can catch type-related issues before your code even runs, like passing a float to a function that expects a str. I'd recommend picking one, along with pytest for testing and Ruff for linting.

To make your portfolio project even stronger, you could also set up GitHub Actions to run these checks automatically.

Also worth checking out uv or Poetry for dependency management. No need to tackle everything at once, though! You're making great progress, keep it up!

1

u/justahappycamper1 Oct 14 '26

Ngl, I thought Pyright was enough but I’ll try out pytest and compare type checkers to see what fits best. will also learn GitHub Actions since I’m not familiar with it yet and trying to move beyond syntax and understand how real-world development workflows actually work

→ More replies (1)

1

u/RahulAgrahari89 Oct 16 '26

Hi guys, I'm trying to learn fast api any tutorial or resources which i would refer to learn production ready fast api

1

u/[deleted] Oct 14 '26

[removed] — view removed comment

1

u/justahappycamper1 Oct 15 '26

Ohk.. I’ll catch the IntergrityError roll back and fetch the row that won the race. If it doesn’t exist I’ll re-raise the error instead of hiding another DB issue