Giter Club home page Giter Club logo

bpoc's Introduction

Bodyless Module Proof of Concept -- BPOC

Concept

BPOC is a module for Drupal 8, built with a block plugin, that integrates React into the block. This is a proof of concept module built to test out the viability in taking this approach. The module uses the term 'bodyless' as it relies on Drupal 8 only as the delivery mechanism for the view. There is not any reliance directly on Drupal 8 from a 'model' or 'controller' perspective.

In this module, there are some configuration settings for using this module as it is, but that is simply by choice, as the integration of that configuration into React is also testing the viability for passing in Drupal 8 variables to the React app.

Installation

Using a console or terminal, go to the root directory of your Drupal 8 installation, and enter in the following command: composer require t73biz/bpoc

Then once that has finished, run the following command: drush en bpoc

Next, login into your Drupal 8 admin section and go to /admin/structure/block. In here you will click a Place block button that will bring up a menu to allow you to choose a block to place in that selection. Choose BPOC Block by clicking on the Place block button next to it. A simple form will be presented to you asking you for the block title, and Who you want to say hello to. Click the Save block button. This will close the form box, and return you to the block structure page. Scroll to the bottom of the page, and click the Save blocks button there. Once complete, you can view your block on the frontend of the site.

Removal

Removing BPOC from your Drupal 8 installation is easy. Use the following commands from the command line: drush pmu bpoc and composer remove t73biz/bpoc. This will completely remove all of the configuration for BPOC as well as the block that was inserted.

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.