Contenta {json:api} - Demo
This repository is an example of how easily you can start a contenta project using Circle CI and Pantheon., (*1)
The goal of this repository is to make an example of how easily you can have a modern workflow to install a Drupal 8 back-end ready to serve your decoupled sites., (*2)
About Contenta
Contenta is the community effort of an API-First distribution for Drupal. Contenta means happy in Catalan and indicates the goal of this project, Contenta is about Content, it makes your content happy. The Contenta project aims to have several distributions that can share goals and resources with all the thriving decoupled solutions in Drupal 8. This particular instance focuses on JSON API., (*3)
By installing the contenta distribution you will get an empty drupal installation ready for you to start creating content types. However if you are only testing the distribution, you can install the recipes_magazin
contrib module to get a rich content model with example content to play with., (*4)
In order to provide a uniform experience the Contenta project aligns with the Out of The Box experience initiative. We are under active collaboration to provide the same content types and the same default content so we can offer an out of the box experience with decoupling structured content., (*5)
About JSON API
JSON API is an opinionated modern specification that allows building REST based digital experiences without the typical REST pains. Contenta {json:api} is based on the jsonapi module to allow interacting with your content following the specification., (*6)
There are several documentation resources of interest:, (*7)
Known consumers
This demo repository will only expose an API to build digital experiences out of it. You will find examples on how to build feature rich consumers for Contenta in the list below:, (*8)
We have no examples at the moment. We are working hard on it.
Generate stuff
Generator usage:, (*9)
cd cli
node generator-form.js node
This folder provides a couple of generators which lets you get started with
building a decoupled Drupal site:, (*10)
- generator-form: This generates a working form component from a given entity type, bundle and form mode
- generator-view: This generates a working view component from a given entity type, bundle and view mode
It leverages some mapping between formatters/widgets and react components placed defined in form.mapping.json
and view.mapping.json
., (*11)
Usage
Fork or clone this repository and add your Cirlcle CI and Pantheon.io information., (*12)
Circle CI integration
TODO, (*13)
Pantheon integration
TODO, (*14)
Adding custom code
Using a Composer based workflow (LINK TO A BLOG POST NEEDED) you don't have to include Drupal core or contrib modules in your repository. Circle CI will download all the dependencies for you before deploying the assembled site to Pantheon. However, you will probably need to add custom code to meet your project requirements., (*15)
TODO: Explain the recommended workflow to add custom code., (*16)