Two tools are required:
Install the git hooks to enforce code formatting and commit names:
npm i -D
npx husky
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:3000
- The database view on localhost:5555
The admin password is 1234
.
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 authenticationMAIL_PASSWORD
: Password used for authenticationMAIL_HOST
: Domain of the mail serverMAIL_PORT
: Port to connect to on the mail serverMAIL_FROM
: Mail address to display as sender