KalaSplit - Contenta

Contenta CMS is a headless Drupal installation profile containing all of the basic setup need to run the JSON API module, configure cores and contains all the necessary API documentation to work with the platform.

Installation

The installation of the Contenta CMS can be a bit tricky, however, the following should be all you need to get Contenta CMS running.

Setup

Create the directory which will hold the Contenta CMS instance.

mkdir myapi cd myapi

Once inside the directory initialize Lando, if you are utilizing another local server these steps can be skipped.

lando init <-- choose drupal8 lando start

Your .lando.yml file should look like the following with the name of the application being changed to reflect the project you are working on:

name: myapi recipe: drupal8 config: webroot: web

Now that we have Lando running and properly configured we will use composer to pull in an instance of Contenta.

Contenta is being pulled into a subdirectory as composer will not allow us to install anything in to a directory already containing other files. Once this is done we can move the files to the proper location.

It is important not to miss the step of moving hidden files.

We can now install Contenta utilizing composer.

Using either the visual steps within the browser or the following command we can install the site and initialize the database as you would with a typical Drupal installation.

Contenta should now be installed and functioning on your local development environment.

You can follow the tutorials and API documentation on your current installation of Content to discover how to consume your new headless site utilizing the front-end framework of your choice.

Demo

A demonstration installation of Contenta can be found at the following URL:

http://dev-kalasplit.at.kalamuna.com/

An example of an MVP utilizing the Angular framework to consume this API can be found at:

http://split.jasonblanda.com/

Related pages