A working "Headless Drupal" example implementation - an AngularJS app set up to talk to Drupal 8 vis the rest.module.
This is a quick and dirty demo, intended as a starting place for discussion, and to help others get hacking quickly. There's a lot of work TODO.
Pull requests are welcome.
- Clone this repo, run
bower install
and the - Visit app/index.html
You are now seeing content pulled from the Drupal 8 instance backing the demo site that I have running on Pantheon. Feel free to start experimenting with your own Angular implementation. Or start a demo with another framework!
Going beyond the most basic demo, you will likely want to customize the back-end a little bit as well. Getting your own up and running is pretty simple:
- Start with a fresh Drupal 8 instance. Use Pantheon if you like
- Enable all the core REST Services module.
- Copy in the provided rest.settings.yml configuration.
- Change the
mySite
variable at the top ofapp.js
oralt.js
to point to your own site. - ???
- Profit!
- Expand this Readme.md to explain how it works.
- Fixing whatever I've done n00bishly in Angular
- Better packaging/documentation of how to configure Drupal.
- Extend DEMO to include CRUD for nodes.
- Add custom routes to the demo.