Hacker News new | ask | show | jobs
by gfrangakis 1984 days ago
I'm curious - is there a tool handles solely the "frontend codebase generation" part of this? This looks great, but we already have a well-defined backend and REST API built using Python+FastAPI, with SQLAlchemy as an ORM and Postgres backing it. I am not a good UI/UX designer, but I understand and have built React applications, so really find myself looking for something that can take an OpenAPI.json spec and produce a hackable frontend codebase that follows best practices.
2 comments

React-admin[0]? Doesn't read openapi from what I could gather but solves similar problems in a best-practicey kind of way.

[0] https://marmelab.com/react-admin/Readme.html

I had seen this a while ago but should take a fresh look at it - it seems like there should be a community tool that generates data providers from an openapi spec. Thanks!
Are you using SQLAlchemy in a blocking way w/ FastAPI?
I believe so - basically following the vanilla SQLAlchemy integration guide they have [0], and not trying to await query results as they do in the the async guide [1]

[0] https://fastapi.tiangolo.com/tutorial/sql-databases/ [1] https://fastapi.tiangolo.com/advanced/async-sql-databases/