This repository contains the complete code for the workshop "Using React with Drupal. The Basics." (Working title)
The subject of the workshop is how to implement a simple decoupled Drupal content viewing app. As such the workshop itself will mainly deal with the frontend aspects (within the ./frontend
directory). For those interested the backend used is also included in the ./backend
directory. (See ./backend/README.md
for more information)
The frontend is built using create-react-app
for scaffolding. You can read the comprehensive documentation at ./frontend/README.md
.
To work on the app code you need to have the following dependencies installed:
git
nodejs
of at least version 8yarn
package manager (if it is missing:npm i yarn -g
)
- Go into the
./frontend
directory:$ cd frontend
- Install dependencies:
$ yarn
- Start development server:
$ yarn start
- You can access the served app code by pointing your browser to http://localhost:3000
This is not needed for the workshop as we will use a hosted backend. If you want to install it locally, follow the steps described in ./backend/README.md
.