Two tools are required:
Install the git hooks to enforce code formatting and commit names:
npm i -D
npx husky
Install git submodules:
git submodule update --init --recursive
Add execution permissions on directus scripts:
chmod +x ./directus/load.sh
chmod +x ./directus/populate.sh
Apply directus schema and populate the database:
./directus/load.sh
./directus/populate.sh
First, get the directus token and put it in a .env
file at the root of the repository (see .env.example
). Then boot up the full service stack locally, using the docker compose up
command, from the root of the project. You will be able to access:
- The webapp on localhost/clicketing
- The directus view on localhost/directus
The username is [email protected]
.
The admin password is 1234
.
Go to http://localhost/directus/admin/settings/policies and select Public policy.
Set required policy rules. (Maybe some are missing, resulting in access error for some collections):
The configuration is done through environment variables:
DIRECTUS_TOKEN
: Token to access the directus instance. Required. The test token is1234