Skip to content

clicepfl/clicketing

Repository files navigation

Clicketing

Developpment

Initial setup

Two tools are required:

Install the git hooks to enforce code formatting and commit names:

npm i -D
npx husky

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 admin password is 1234.

Configuration

The configuration is done through environment variables:

  • JWT_SECRET: private key used to sign sessions. Required.
  • ADMIN_TOKEN: Admin panel password. Required.
  • DIRECTUS_TOKEN: Token to access the directus instance. Required.
  • SESSION_LIFE: The duration of a session, in milliseconds. Defaults to 1 day.
  • MAIL_USER: Username used for authentication
  • MAIL_PASSWORD: Password used for authentication
  • MAIL_HOST: Domain of the mail server
  • MAIL_PORT: Port to connect to on the mail server
  • MAIL_FROM: Mail address to display as sender