Quizmaster uses environment variables to configure the server port, database connection, authentication secrets, and the frontend API URL. Copy the example below into aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/geeky-hamster/Quizmaster/llms.txt
Use this file to discover all available pages before exploring further.
.env file at the root of the backend directory and fill in your values before starting the application.
.env
Backend variables
The port the Express server listens on.
Hostname or IP address of your MySQL server.
TCP port of your MySQL server.
Name of the MySQL database Quizmaster will connect to.
MySQL user with read/write access to the database.
Password for the MySQL user.
Secret key used to sign and verify JSON Web Tokens. Must be a long, random string in production.
Full MySQL connection string (e.g.
mysql://user:password@host:3306/quizmaster). When set, this takes precedence over all individual DB_* variables. DATABASE_URL is accepted as an alias.If both
MYSQL_URL (or DATABASE_URL) and individual DB_* variables are present, the connection string is used and the individual variables are ignored.Frontend variable
Base URL the React frontend uses to reach the backend API. Override this when deploying the frontend to a different host or when the backend runs on a non-default port.