An application server for simple quiz. At my wedding, I used it to give guests a quiz with a smartphone and pay prizes according to their ranking. this is reason why name of this quiz application is WeddingQuiz
.
- node 12.x or above
- MySQL or MariaDB
npm install
npm run util:sync # for prepare MySQL table schema.
npm run dev
this application uses dotenv
. so, an example for .env
file will be same as followings:
HTTP_PORT=3000
DB_HOST=xxxxx
DB_PORT=3306
DB_USER=root
DB_PASSWORD=xxxx
DB_DATABASE=xxxx
JWT_PRIVATE_KEY=xxxx
NUM_QUIZ_PER_MEMBER=7
AUTH_ENABLED=true # Optional, default false
MEMBER_ID_INJECTION=1 # Optional, activates when the AUTH_ENABLED was false