Creating a client with Vue.js

Since our microservice is working with GraphQL, we would like to create a simple UI so that we can connect and expose the data we created and interact with it.

Vue.js is a progressive web framework for frontend applications that was created by Evan You. Vue.js stands out because of its simplicity in performing the same tasks as other frameworks.

Since this book is not about Vue.js, we recommend that you go to the Vue.js documentation to learn more: https://vuejs.org/.

The first step is to install Vue.js and the Vue.js CLIs:

$ npm install -g @vue/cli-init vue

After that, create a new project called client with the following command:

$ vue init webpack client? Project name client? Project description Order client ...

Get Hands-On RESTful Web Services with TypeScript 3 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.