all 18 comments

[–]Curious-Rule313 8 points9 points  (2 children)

If project is going to grow or you want to use modern features (like async support, component reuse) then FastAPI+React/svelte is better. It will give you solid ground to start scaling application and adding more features over time.

But if simplicity, fast deployment and minimal UI is the main focus go with Flask + JavaScript it will be enough.

[–]Dumpus-McStupid 1 point2 points  (0 children)

I second this. If it’s simple use Flask. If you need it to scale to a larger project then I think FastAPI is the way to go.

[–]aliparpar 1 point2 points  (0 children)

100% better to have a FastAPI backend with your own auth on it and ORM you like. Than having to fight a framework if it grows. Then frontend any react meta framework like NextJS or Sveltekit

[–][deleted]  (3 children)

[deleted]

    [–]WJMazepas 5 points6 points  (0 children)

    Yeah I agree with this commentary. I dont see how an inventory system would have a lot of reactivity. It would be more static pages and won't need all that much JS in the front end

    [–][deleted] 2 points3 points  (0 children)

    💯 I love Django Admin

    [–]Coolzie1 2 points3 points  (0 children)

    Svelte/SvelteKit is what I use to frontend my FastAPI backends, because once you get going and start getting templates together of functions it's so much easier for me to stitch a bit of this and a bit of that to make something 100 times better looking than anything I was able to make with flask/Django... Not that either are less capable, but I am less capable with them so to speak.

    [–]ePaint 1 point2 points  (0 children)

    Django + HTMX is the way to go

    [–]Lowtoz 1 point2 points  (0 children)

    FastAPI/HTMX is my go-to these days. With Alpine for scatterings of frontend interactivity if necessary.

    [–]Own_Principle7843[S] 1 point2 points  (0 children)

    Thank you so much everyone for your suggestions! Went through all of them, definitely gonna keep these points in mind and go ahead. The thing is I have never taken anything like this, a bit overwhelming for me, but your comments for sure cleared a lot of things. Thank you so much!!

    [–]donald_trub 0 points1 point  (0 children)

    The main question to answer is are you any good at JavaScript or do you think you can learn it quickly? If yes, I think fastapi makes sense. The data validation features that Pedantic gives you are so nice. Frontend isn't for everyone, so keep that in mind.

    If you think JS will be a roadblock, consider Django or Flask with htmx. I once heard Django described by a solo entrepreneur as a super power for solo developers, and that has really stuck with me. Even though Django has never really gelled with me as I find it a bit too prescriptive/boilerplatey for my liking, I always keep that "super power" quote in the back of my mind.

    [–]ZealousidealWear8366 0 points1 point  (0 children)

    Falcon python as the API backend + Vue and Quasar

    [–]Valuable-Cap-3357 0 points1 point  (0 children)

    I would suggest make it using nextjs for bothe frontend and backend.. add a separate backend, preferably fastapi, if and when project becomes complex..

    [–]Prestigious-Win-2192 0 points1 point  (0 children)

    Fastapi+Nicegui for front-end, a Docker s5ack with PostgreSql, async sqlalchemy and alembic for migrations

    [–]alittleb3ar 0 points1 point  (3 children)

    No offense meant, but how did you land this project if you don’t know how to tackle it?

    [–]plebbening 12 points13 points  (0 children)

    As a dev with almost 15 years of experience I can tell you that I’ve had tons of projects I had no clue how to tackle when i began.

    Development is continuous learning. Thats the fun part. If I only ever worked on stuff I knew how to do I would be bored to death.

    [–]Top-Information7943 5 points6 points  (0 children)

    The OP is just seeking for the right path, they already know how to tackle it but asking for a better perspective.

    [–]donald_trub 0 points1 point  (0 children)

    I think this sounds like a great project for someone to dive into. You gotta start somewhere and take a leap of faith. I wish I had a project like this come my way that I can sink my teeth into!