Umami Demo

How to run the Umami demo on your local.


  1. Create a new Drupal project
composer create-project drupal/recommended-project umami
  1. Edit composer.json file and add the following patches under extra.
"extra": {
"patches": {
"drupal/subrequests": {
"Get same results on different request": ""
"drupal/decoupled_router": {
"Unable to resolve path on node in other language than default": ""
  1. Add dependencies
composer require drupal/next drupal/jsonapi_menu_items drupal/jsonapi_views 'drupal/jsonapi_resources:^1.0@beta'
  1. Install Drupal. Make sure you select Demo: Umami Food Magazine (Experimental) as the installation profile.

    For a quick installation, you may also use the quick-start command:

php -d memory_limit=256M ./web/core/scripts/drupal quick-start demo_umami
  1. Enable the following modules:
  • Next
  • Next JSON:API
  • JSON:API Menu Items
  • JSON:API Views


  1. Grab a copy of the Next.js code:
git clone
  1. Install dependencies
yarn install
  1. Copy .env.example to .env.local and update the values to point to your Drupal site:
NEXT_PUBLIC_DRUPAL_BASE_URL=http://drupal.test NEXT_IMAGE_DOMAIN=drupal.test
  1. Start the development server
yarn dev
  1. Visit http://localhost:3000 to see the Next.js site.

How to enable authentication

We use the simple_oauth module for authentication.

  1. Visit /admin/config/people/simple_oauth.
  2. Click on Generate Keys.
  3. Enter sites/default/files/private for Directory for the keys and click Generate.
  4. Visit /admin/config/services/consumer and edit the default client.
  5. Enter weDKc7PD845kq49JfPeYmsZ48eunder New Secret and Save.
  6. Update your .env.local with the following:
# Required
+ # Authentication (Bearer)
+ NEXTAUTH_URL=http://localhost:3000
  1. Restart the Next.js development server.
  2. If you visit http://localhost:3000/login, you should now be able to login with the Drupal admin username and password.

How to enable JSON:API Write Operations

  1. Visit /admin/config/services/jsonapi
  2. Under Allowed Operations, select Accept all JSON:API create, read, update, and delete operations..
  3. Save configuration

You can now visit http://localhost:3000/articles/new to create a new article.