Open Data Catalog v2.0.0
Installation

For either working on a project locally or working on the core DKAN software and libraries, using a standardized, docker-based local environment is recommended. Our DKAN Tools command-line utility will work on Mac or Linux to create containers for the various services needed by DKAN. This will ensure you have the same setup as DKAN's core developers, and that your environment is very close to that of our continuous integration tools.

It is possible, though not reccomended, to use DKAN Tools without docker and using your system's native webserver, php, and database tools; see the DKAN Tools documentation.

If you are making changes or improvements to DKAN, contribute back using the standard fork and pull-request workflow in Gitihub.

Requirements

DKAN is based on Drupal software and – generally – runs anywhere Drupal is supported. For the most common setup, we reccomend:

  • MySQL: minimum version 5.5.3+ with PDO
  • PHP: minimum version 7.2.x
  • Apache: minimum version 2.x
  • Drush: minimum version 9.x.

Starting a new project

Follow the DKAN Tools README instructions to generate new Drupal site with DKAN installed on your system.

Installing DKAN

If you already have an existing Drupal site, install DKAN with composer. You can find the latest release version here.

composer require 'getdkan/dkan:2.0.0'

Decoupled front end

DKAN for Drupal 8 works with a decoupled React application as the frontend.

DKAN_frontend is an integration module that allows the React App driving the frontend to be embedded in Drupal.

If you are not using DKAN Tools, follow these steps to get the integration working:

  1. Place the source for the data-catalog-frontend inside of your docroot directory.
git clone https://github.com/GetDKAN/data-catalog-frontend.git
  1. Follow the instructions in the README of data-catalog-frontend, but instead of runnig the development server at the end, build a copy with npm run build
  2. Enable the integration module dkan_frontend
  3. Change the sites configuration to point the homepage (/) to /home
  4. The app's README will also have instructions for how you can customize the colors and layout to meet your needs.

Dummy content

To populate your site with example content, enable the dkan_dummy_content module:

$ drush en dkan_dummy_content

to add and then remove the content use the following commands:

$ drush dkan-dummy-content:create
$ drush dkan-dummy-content:remove

Deploying to other environments