If headless Drupal is what you are after, it is also worth checking out an example headless project: the ContentaCMS, which is an entirely headless implementation of Drupal with popular frontend frameworks. If you prefer to use GraphQL, there is a GraphQL module which is under active development and allows you to build GraphQL endpoints. We wrote a great post about setting up REST endpoints for a JavaScript application. Specifically, have a look at the REST UI module which enables you to create clean configurable endpoints for entities. You can find documentation on Drupal Rest API documentation page.
#How to create phishing page with drupal full#
Drupal 8 is a fantastic piece of software and comes packaged with a full REST API. When the React app is running, you then create endpoints in Drupal, which serve as data sources for your React app.
It only needs to be able to use the exposed API.įacebook prepared a fantastic boilerplate React project to help you start. React then does not really care what is in the backed. If you chose headless Drupal, you then build a separate React application which communicates with the backend via HTTP requests, just as you would with any backend system.
only displays news from one section of a huge news magazine.