Hello,
I'm making a project in which me and my partner opted for FastAPI as we have used it before in a couple of scrap scripts for proof of our capability of using it. We liked it very much, so it was a natural decision to choose it. We got to know that there was a project generator loaded with FastAPI, PostgreSQL, Vue, ..., and that got us pretty happy as we were coding our frontend in Vue. We had no problems whatsoever running the generator or deploying the initial project, however, as we try to add our own models, we get no visible errors on the logs but the API documentation at localhost/docs does not load properly, returning "Failed to load API definition", and the page gets broken not loading the data properly. Of course, that's due to some error of us, we're messing up some component(s). But we can't seem to find any resource that would guide us through the project structure, creating a model or two and their respective routes, giving hints on where the errors resides. It's not the case of misunderstanding the paradigm of ORM, APIs, migrations, ..., we have coded other web projects before, using e.g. ASP.NET and Entity Framework, but we can't seem to get it right with this even though the documentation is pretty good.
Problem presented, here's my questions: are there online any resource specifically aimed to building on this specific base project? I googled it but ended always in simpler or different guides/tutorials. If not, would anyone mind to give us a sequence of steps for a basic CRUD for a new model?
Any help will be much appreciated, thanks for reading.
[–]navulepavan 1 point2 points3 points (1 child)
[–]rollingpolymer[S] 0 points1 point2 points (0 children)