How to do it...

To complete this recipe, you'll need the Feathers' command line; install it with the following command:

npm install -g feathers-cli

Now, run feathers generate, which will create all the boilerplate for you. When asked about the API, select Socket.io:

All the other questions can be left to the default value. While still in the Feather console, type generate service to create a new service. You can call it cats and leave the other questions to their default values.

Inside the public folder, open index.html and delete everything except a HTML5 boilerplate. You will need three dependencies in the head:

 <script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.js"></script> ...

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.