Coder Social home page Coder Social logo

headless-drupal's Introduction

Environment setup

- Install Vagrant
- Install Virtual Box
- Provision using the given shell scripts
- Install Node.js (Yo, Grunt, Bower, Angular Generator)
- Install PHP55
- Install Apache
- Install MySQL
- Install Ruby (Sass, Compass) use RVM

Setup VHOST

- Create a VHost for Angular and Drupal servers
- angular.dev & drupal.dev (Use Python for Client server)
- Run both the servers

Use Drush/Git to pull down latest head of Drupal 8

- drush dl drupal-8
- git clone --branch 8.0.x http://git.drupal.org/project/drupal.git

Use Yo to generate Angular project scaffold

- Use offical angular generator
- Use generator scaffold toolds for creating test, controllers, routes
- Add ng-animate, ng-resource

Fix CORS issue

- Add the CORS support in either index.php or .htaccess
- Mention Drupal Modules (CORS)

Enable REST modules

- Enable all the REST modules in Drupal
- Add instruction for drush en

Write API tests

- Write Test using Superagent/Jasmine
- Use Testem or Karma as runners
- Use Curl/HTTPie

Create pages for About

- Create a Basic page
- Add a URL alias

Create views for Blog

- Create a content-type
- Create a View
- Add content

Write client app

- Setup up Angular app
- Add support for hal-json
- Add styles using bootstrap/Foundation

Write End-to-End test

- Write test to check proper content is being rendered.
- Use testem or Karma

Closing remarks

- Mention the use cases
- Future posts (POSTS, Forms, etc)

headless-drupal's People

Contributors

skippednote avatar

Watchers

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