Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.57 KB

README.md

File metadata and controls

63 lines (39 loc) · 1.57 KB

Clicketing

Developpment

Initial setup

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

Run the stack locally

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 username is [email protected]. The admin password is 1234.

Add permissions in directus to access items

Go to http://localhost/directus/admin/settings/policies and select Public policy.

alt text

Set required policy rules. (Maybe some are missing, resulting in access error for some collections):

alt text

Configuration

The configuration is done through environment variables:

  • DIRECTUS_TOKEN: Token to access the directus instance. Required. The test token is 1234