Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 757 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 757 Bytes

Drupal 8 API - ReactJS front end

I set up a ReactJS front-end with a Drupal 8 API (“Headless” Drupal, or decoupled Drupal as some call it).

How to use

  • Create a Drupal 8 installation on your local or remote machine
  • Install Devel module and Devel generate and generate some nodes.
  • Create a View with the nodes and click on Provide a REST export and give it a link (e.g. /api/articles)
  • Test your link (e.g. http://localhost/drupal8/api/articles)
  • Edit js/app.js on line 20 and put the link you create.
  • Just run your app on your local/remote server. It should list your content and provide you with a search form.