Coder Social home page Coder Social logo

sanduhrs / drupal-8-rest-angularjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clemens-tolboom/drupal-8-rest-angularjs

0.0 2.0 0.0 449 KB

Test angularjs frontend for Drupal 8 ReST

License: MIT License

CSS 3.22% JavaScript 62.05% HTML 34.73%

drupal-8-rest-angularjs's Introduction

This project is based on angular-seed

Drupal 8 Rest AngularJS

This project tries to reimplement the Bartik theme from Drupal 8 as an AngularJS webapplication communicating with Drupal through ReST

Getting Started

All dependencies are managed with npm and bower. To start clone this repository and run:

$ npm install
$ npm start
  ...
  ^C

Default installation

Drupal 8 ReST doesn't support CORS yet so the app directory should be hosted on the same hostname and port as the Drupal 8 instance running the ReST api. The easiest way is to copy or symlink the app directory from this repo to to root of your Drupal 8 installation.

# Go to your Drupal 8 root directory
$ cd /var/www/drupal
$ ln -s /path/to/drupal-8-rest-angularjs/app .

Installing on a CORS configured server

When having configured your web server of the .htaccess with core you should change the app.js config section.

Drupal configuration

Current version only suppoert hal+json so make sure all views and rest resources support these.

Modules

Install and enable https://www.drupal.org/project/restui

Views need rest displays

Add a "Rest export" display to view

Import views

You need to import the views from /app/_drupal directory.

/taxonomy/list

This view adds a "Rest export" display with path to '/taxonomy/list' to display the term name.

/node/%/comments

This view adds a "Rest export" display with path to '/node/%/comments' to display the comments.

Rest UI

Check the configuration on http://drupal.d8/admin/config/services/rest

Permissions

Check the permissions on http://drupal.d8/admin/people/permissions for 'RESTful Web Services' permissions.

drupal-8-rest-angularjs's People

Contributors

clemens-tolboom avatar martijnbraam avatar

Watchers

Stefan Auditor avatar James Cloos 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.