Skip to content

A React build to be paired with Drupal in a headless manner

Notifications You must be signed in to change notification settings

mehidou/headless-drupal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A React build to be paired with Drupal in a headless manner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • HTML 13.7%
  • CSS 3.3%