I’m a frontend dev. I have extensive experience with Vue but very limited experience with WordPress
Been thinking about doing some freelancing for a niche market where I’m in. Most of them have super scuffed WordPress websites sprawled with buttons that do nothing, Divi icon dab smacked on the navbar and all that other shenanigans you see when people try to build their own sites.
My initial thought was just to build my own APIs and propose managing their content for them with markdown or something but it seems like a nightmare long term.
So maybe just managing a bunch of WP builds might be feasible but I really would like to avoid any php templating (including blade). Is it possible to just use WP rest API as a backend with Vue? Will it be difficult doing auth for public/private content? What about other integrations, contact forms & mailing lists etc
[ad_2]
You can’t avoid PHP while working on WordPress.
It’s possible to use the headless approach with a separate Vue front-end, but it becomes too complex too quickly, especially if you plan to deal with external plugins.
The answer to your question is ” probably not. ” WordPress’s Gutenberg editor tech has adopted React for front end work and built a workable way to extend and use it within the traditional plugin / theme paradigm. Adding another front end framework would probably yield functional web sites, but they’d be Frankenstein’s monsters.
And, Gutenberg development is ongoing. Your approach wouldn’t leverage that work.
You can build decent and performant SPAs with Gutenberg.
You can probably build Gutenberg blocks with Vue. Blocks are the base components of front-end pages.
I say ‘probably’ because lately I have been building blocks as plugins using Svelte and it’s all gone pretty smoothly, I just haven’t tried with Vue. By going the plugin route it *should* work with any theme.