15
Building a Decoupled Frontend
We can use a decoupled approach when planning how to implement the frontend for a Drupal website.
In this chapter, we’ll explore some solutions available for building a JavaScript application that queries a Drupal backend to retrieve the information to render.
The first section discusses how Drupal exposes its content to the external systems. In the second part, we’ll build a frontend using a handmade solution with vanilla JavaScript and then with Next.js.
The topics covered in this chapter will be as follows:
- Setting up the environment to build a decoupled site
- Introduction to Next.js
Technical requirements
To run the examples in this chapter, make sure to follow the instructions explained in Chapter 1,
Get Modernizing Drupal 10 Theme Development 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.