Clicketing is a web application made for managing registrations, ticketing and event access for events organized by CLIC.
Two tools are required:
Install the git hooks to enforce code formatting and commit names:
npm i -D
npx huskyInstall git submodules:
git submodule update --init --recursiveAdd execution permissions on directus scripts:
chmod +x ./directus/load.sh
chmod +x ./directus/populate.shApply directus schema and populate the database:
./directus/load.sh
./directus/populate.shFirst, 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 clic@epfl.ch.
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

