Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.02 KB

readme.md

File metadata and controls

25 lines (14 loc) · 1.02 KB

Headless (Horseman) Drupal Setup

Ok so here's the story. You can use Drupal as your backend CMS (so that non-tech folks can enter data as they normally would) but remove the front end bits (the headless part). Then you can grab all of the data as JSON via Drupal 8's API stuff.

You can read all about it:

here

here

and

here

The instructions are fairly straight-forward.

Don't forget when you set up your Drupal site to include something to mitigate CORS. Something as simple as adding

  header('Access-Control-Allow-Origin: *');

to index.php should do the trick but hey you might be smarter than me and have a better way of pulling this.

Anyway. I set mine up to pull in an Events content-type but really you could do whatever and then make sure to update App.js.