Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1742

Compiling individual pages for an existing Flask app?

$
0
0

Full disclosure: I am an inexperienced frontend dev.

I have an existing Flask app backend which is being used to interact with the usual suspects (do work in the main python app, database interactions, etc.) with API end-points, but is also serving up a basic GUI (Volt). Additionally, routing is already being handled by nginx – which I believe is preferable as the final deployment target is K8s, though that is more in the wheelhouse of my colleagues.

The complexity of the frontend requirements is starting to surpass what is fun to write in vanilla JS, and I quite like the svelte format. What I’d like to do is write some of the more complex functionality as svelte components, then compile the individual pages and serve them up with the existing Flask app.

Given the existing backend / routing, I’m having a hard time setting up my development environment (configs: vite, svelte, package) to achieve my use-case as most of the defaults seem to be tailored towards creating a SPA. Additionally, I’d rather avoid the limitations of the custom component API, especially since, honestly, I’m not experienced enough to do it well.

Any direction would be greatly appreciated, thanks.


Viewing all articles
Browse latest Browse all 1742

Trending Articles