I have decided to take the plunge and document a fairly pointless journey. A tale of a tech-nerd who decides to put vue.js to the test by using it to create a frontend for his WordPress Blog. Which, by nature, is really a pointless blog. So, to recap, I am attempting a pointless project on a pointless blog.
As I think through it more, I think there may be a point. Actually, there is a point. I am going to find out for myself what the pros and cons of Vue are. Maybe discover, in the real world, how Vue vs Angular vs React really stack up. After reading many posts on the subject, they all seem to come back to – “use the right tool for the right job”. That’s great, if you understand the tools. But if you are trying to make that initial decision, then what?
So, that is the point of this. Figure what this Vue tool is all about! When to use it. When to not.
Why Vue.js?
Because it’s cool. Because it’s lightweight. Because it’s fast. An why not? I am just about to wrap up a project using Vue, so it’s good to strike while my brain is still wrapped around the framework.
Why WordPress?
Because it is much more fun to use a real API then to fake everything with a Hello World app – no? I already have WordPress. It already has an API. So – BAM. It’s a no-brainer.
First step – installing Vue.js?
Get the Vue.js project rocking. I refuse to document something that has been documented countless time – so, if you are trying to follow along, this is where I started.
https://code.visualstudio.com/docs/nodejs/vuejs-tutorial
And don’t give me any grief for using VS Code. It’s a good tool. There are many other good tools. Use the one you like!
Using the vue cli, I was up and running in a few minutes… And off we go! Next stop – choosing the frontend framework for this journey!
If you are still reading, you must be bored. The next step is waiting for you – integrating with the WordPress API!