Starting a new project, step-by-step
-
To start a project with DKAN tools, create a project directory.
mkdir my_project && cd my_project
-
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. -
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
-
Install. Creates a database, installs Drupal, and enables DKAN.
dktl install
install options:
--existing-config
Add this option to preserve existing configuration.
-
Add the front end.
dktl frontend:install dktl frontend:build
-
Access the site.
dktl drush uli
-
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.