Im a software developer used to write Windows, Webapp and Web services.
I have been using Webflow for almost 2 years now, and love it. All the time i have been missing an interface to connect to external API’s. I have now spent 2 days doing some research on the topic.
I have actualy found a quite good way of solving the problem. In my test environment i have connected my Webflow site to both external open API’s and some of my own API’s i have built over some years. The Web Services are connected to different db’s.
I have been using Vue.js and Axios http client. It works pretty good. I have not tested all yet, but some things and IT WORKS! There are some issues with Vue.js but i don’t se them to be a big problem. Object that i hooked in to Vue will loose the possibility to do animation, but i don’t se that as a big problem since i don’t want animations on object where im pulling in data.
So far i have been able to use the visual interface for the design of my site, with one exeption so far. The Webflow Form can not be used, here i hade to use HTML embedd.
I dont know how much more time i will spend on this, since i know it works. My problem is that im a good oop programer but im realy bad in JS and it takes to long time for me.
@JanneWassberg This sounds really interesting! I’d love to see an example too - just thought I’d try and poke and see if you have time to link to something.
Are you able to generate pages from other APIs or are you just talking about embedding javascript and presenting data from remote APIs on static or CMS pages? We’re doing something like the latter with this hackdash-embed/embed.js at master · OpenUpSA/hackdash-embed · GitHub and then styled the HTML from webflow designer.
Just thought I’d share how we do this these days. This doesn’t work in the designer, so we have the webflow developer mock up example pages using symbols, then on proper pages we put those symbols into a hidden div, then we clone the symbols to use them like components of a component library using javascript.
it’s a webflow export, that is then hosted on netlify, with cutom javascript added. That custom javascript fetches data from an API and populates and shows hidden components built in webflow.