React SPA with Kirby Panel

Hi all,

I’m trying to figure out a way to create a single page app using React as the frontend of the site whilst still having Kirby as the CMS. I plan on using the api provided by this Kirby plugin: GitHub - lord-executor/kirby-json-api: The Kirby JSON API plugin is a fairly simple layer on top of the existing Kirby infrastructure that provides a language-aware, read-only (for now) JSON API to access the content tree from JavaScript and other external clients. It also provides some basic functionality for developers to easily add their own JSON-based APIs. or GitHub - jongacnik/kirby2-spad: 📄 Kirby single page app json

But I can’t figure out what the project structure would be for me to be able to have my index.html as the starting point? Does anybody have an example where they have created a SPA as the frontend of a Kirby site or can point me in the right direction?

Thanks!

Why do you need an index.html? You might as well use the home.php template?

1 Like