Starting a new project, step-by-step

  1. To start a project with DKAN tools, create a project directory.

    mkdir my_project && cd my_project

  2. Inside the project directory, initialize your project.

    dktl init

    Using a specific version of DKAN

    Define the tag or branch on this command (e.g. dktl init --dkan=branch-name). By itself, the init command will use the latest release of DKAN.

  3. Make a full Drupal/DKAN codebase, primarily using composer (Options are passed directly to composer install, see documentation).

    dktl make

    make options:

    • --prefer-source
    • --prefer-dist
    • --no-dev
    • --optimize-autoloader
  4. Install. Creates a database, installs Drupal, and enables DKAN.

    dktl install

    install options:

    • --existing-config Add this option to preserve existing configuration.
  5. Add the front end.

    dktl frontend:install dktl frontend:build

  6. Access the site.

    dktl drush uli

  7. Stop the docker-compose project, removing all containers and networks.

    dktl down

    This will keep files downloaded during the make phase, as well as any changes made to them. But any database will be removed and all content lost.