Example JSON files are provided in the
srcdirectory for survey data. Technically you can name the question objects (zero level deep keys) anything, but naming them serially like "question1, question2 ..." is recommended for consistency.
src/initialize_db.sql first.You should also create a cron job on your system to clear expired sessions for safety and performance reasons. Look up pg_cron.
Example:
DELETE FROM session WHERE expires_at <= (SELECT floor(extract(epoch from now() at time zone 'utc')) as now)
Rename .env.example to .env and fill its contents with your database and host server info.
npm i
Create an academician user by running node create_academician.cjs.
npm run build
node -r dotenv/config build
# or `node --env-file=.env build` for v20.6+