I searched the forums and didn’t quite find a full answer. I have a strong python background but little HTML / CSS. I was looking for a tool like RapidWeaver to allow me to design and build a front-end. Then connect it to my python backend APIs. Is that easy? Any link to documentation or tutorials?
Yep! So hypothetically, if I have a rest API using Flask, can I grab data from that API? Can I manage users / log-ins? Can I make a web app powered from an AP and RapidWeaver? I know things like Bubble.is exist but I don’t want to use their low-code workflows.
I’ve played around with this kind of thing a fair bit.
For example taking an entire RW exported site code and bringing the entire thing into a Flask or Django app - so that the site is essentially being run by a Python backend. Same with Java Spring and SparkJava.
Works fine.
But… updates are a pain in the tonsils, because any changes you make in the RW project (and then export) are clearly going to shatter all your dependency links, which you will have now wrangled to point to your new apps structure. Add to that the impact of dealing with Stacks generated HTML which drops extra classes and id’s to compartmentalise different stacks/vendor code domains… and it quickly becomes a chore. Because you are dealing with a Python backend you can of course intercept requests at the Routing layer and invoke whatever pre-processing you fancy (making custom CMS and dynamic content a breeze…), but that will incur a bit of performance cost depending on the complexity.
That way you can side-by-side develop your RW site with your Python pseudo ‘back end’. If you go that way I suggest that you:
a) Consider finding or making a really good html stack which you can use in RW for content injection or other calls or data presentation handling.
b) Get comfy adding extra code files into your RW projects so that you can edit in something decent and save the edits back to the project. Kills me that a RW html page is so pathetic after all these years and now at RW8.
In general though, when I need to build/host in Python/Java/Go I’ll buy/use a template and just bring it all into Flask or Django then deploy that to a cloud vm ( AWS Ec2 instance hooked in through Route 53 or similar).