Code Monkey home page Code Monkey logo

headless-drupal-angular's Introduction

Headless Drupal + AngularJS

A working "Headless Drupal" example implementation - an AngularJS app set up to talk to Drupal 8 vis the rest.module.

See a demonstration online:

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.

Quickstart

  1. Clone this repo, run bower install and the
  2. 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!

Running it w/your own Drupal Install

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:

  1. Start with a fresh Drupal 8 instance. Use Pantheon if you like
  2. Enable all the core REST Services module.
  3. Copy in the provided rest.settings.yml configuration.
  4. Change the mySite variable at the top of app.js or alt.js to point to your own site.
  5. ???
  6. Profit!

TODO:

  • 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.

headless-drupal-angular's People

Watchers

James Cloos avatar Huynh Khac Thao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.