Giter Site home page Giter Site logo

systemseed / drupal_reactjs_boilerplate Goto Github PK

View Code? Open in Web Editor NEW
84.0 20.0 30.0 1.28 MB

Docker based Drupal / React boilerplate with Unit / API / End-to-end test coverage examples.

Home Page: https://medium.com/systemseed/kicking-off-decoupled-drupal-react-projects-with-boilerplate-67253a8dee29

License: GNU General Public License v3.0

Makefile 4.87% PHP 28.29% Shell 0.14% CoffeeScript 55.82% JavaScript 5.67% HTML 0.26% SCSS 4.94%

drupal_reactjs_boilerplate's Introduction

CircleCI ReadTheDocs

What is this project for?

The main purpose of the project is to provide a super-quick start for fully decoupled applications development based on Drupal 8 and React.

Our main goal was to create the boilerplate with minimal amount of opinionated set of features, but at the same time give developers a solid base for start to let them focus on the development and do not worry about infrastructure / integrations set up.

What does this project include?

We've got many little developers tricks and sugar added, but from the very high level the project includes:

  • One-command installation experience for the whole development / testing infrastructure
  • Docker configuration to avoid any necessity in third-party tools installed on your local machine
  • Configured Drupal 8 application based on Contenta CMS for comprehensive decoupled development
  • Configured React.js application based on Next.js for Server Side Rendering support and great dev experience
  • 3 types of tests included (Unit / Integration, API, Acceptance) with examples, Drupal API integration & database connection
  • Platform.sh ready configuration for those who want to run the project in web
  • Simple commands for automated code quality checks / fixes
  • Continuous Integration example for CircleCI to test project installation, code quality & run tests.

Installation

  1. To get everything installed locally, simply use the following commands:

    cd drupal_reactjs_boilerplate
    make install
    
  2. That's it, the Decoupled application is ready for development!

Access the applications

Demo content

This boilerplate comes as an example of integration between frontend and backend applications, therefore all demo content is enabled by default. However, if you want to get rid of it and focus on development - all you need to do is to delete the module with demo content by calling make drush pmu recipes_magazin.

Explore the documentation

drupal_reactjs_boilerplate's People

Contributors

dependabot[bot] avatar duozersk avatar kitnato avatar quentinjeanningros avatar spleshka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drupal_reactjs_boilerplate's Issues

Windows OS installation

Hi. I rewrote some files for make command can work on windows, but on step installing contenta_jsonapi I get the error "Call to a member function setFormClass() on null in system_entity_type_build()".
Maybe you can help for fix this error or write full instruction how user can start you project on windows os.
Thank you!

Dirty git status after `make install`

After executing make install:

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   drupal/web/sites/default/settings.php

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	drupal/keys/

Allow config management from UI on production environment

Problem

Drupal stores most of the configuration in files but still allows to edit it using admin UI. Currently, drupal_reactjs_boilerplate suggests reverting all configs on deployment which means that all changes made by admins on production site will be lost. In some cases it may become an issue:

  1. Admin changed site email address and ensured that it works.
  2. A few days after that deployment took place. The email was reverted back to the original (old) value.
  3. Neither developers nor admins are aware that it happened.

Variables missing from .env.default

I tried out this boilerplate and it is awesome, I am wanting something that makes use of GraphQL for querying data, and only use rest for posts etc. This is a great starting point for me.

The ONLY issue I had is that the variables FRONTEND_HOST are not declared in the .env.default file:

FRONTEND_HOST=fe.docker.localhost
BACKEND_HOST=be.docker.localhost

Thanks

CORS issue when requesting data

TO REPLICATE

Install and run boilerplate as per instructions. Navigate via "Home" or "Go to Homepage" buttons.

EXPECTED

Page is displayed with same data as initial load/browser refresh.

ACTUAL

CORS error that results in displaying a 500 along with error message.

screenshot from 2018-10-29 17-26-49

Trying to understand

So this is a drupal 8 site, but not a normal one. It is a react web app. correct?

How can I convert my existing drupal site or a distribution to a react app?

Install fails on macOS

-p drupal_reactjs_boilerplate: Installing dependencies for React.js application...
services.php must be a mapping
make[1]: *** [prepare:frontend] Error 15
make: *** [install] Error 2

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.