O'Reilly logo

The Majesty of Vue.js by Kostas Maniatis, Alex Kyriakidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Consuming an API – Preface

In this chapter, we are going a little deeper and demonstrate how we can use Vue.js to consume an API.

Following the story examples of previous chapters, we are now going to use some real data, coming from an external source.

In order to use real data, we need to make use of a database. Assuming that you already know how to create a database, it won't be covered in this book. To work along with the book's examples, we got you covered, we have already created one to be put to use.

CRUD

Presume we have a database, we need to perform CRUD operations (Create, Read, Update, Delete). More particularly, we want to:

  • Create new stories in the database
  • Read existing stories
  • Update existing story's details (such as upvotes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required