4

Creating the Marvel Explorer App

Let’s build an app that’s a bit more advanced, using a third-party API to feed it with data. I hope you like comics, because we will build an explorer on the Marvel Comics API, and I will try to squeeze in some heroic puns. We’ll explore adding different routes and add a bit of abstraction to make better use of writing our code.

We’ll cover the following topics in this chapter:

  • Getting started
  • Retrieving data from the API
  • Routing in a single-page application
  • Writing and using composables
  • Searching for and handling data
  • User-friendly error handling

Technical requirements

In this chapter, we’ll replace node package manager (npm) with performant npm (pnpm): https://pnpm.io.

We need to register at https://developer.marvel.com/ ...

Get Building Real-World Web Applications with Vue.js 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.