Complete guide for setting up the quiz application locally.
- Node.js: Version 24.x
- Vite+ (
vp): Installed and available in your shell - Git: For version control
-
Install Vite+ (if not installed)
curl -fsSL https://vite.plus | bash -
Clone and install
git clone <repository-url> cd stage-flow-tools vp install
Create .env file from template:
cp .env.example .envGenerate a strong JWT secret:
openssl rand -base64 48Copy the generated secret and update NUXT_JWT_SECRET in your .env file.
During local development, data is stored in .data/db/stage-flow-tools.sqlite3 (created automatically, gitignored):
questionsandanswersare stored in SQLite tables.- Admin credentials stay in runtime config.
No bundled question set is shipped with the repository. Create questions through the admin UI.
rm -rf .data/
# Restart the app to recreate the quiz databasecp -r .data/ data-backup-$(date +%Y%m%d)Change port in .env:
PORT=3001
Check write permissions on the .data/ directory:
chmod 755 .data/- Check if port 3000 is accessible
- Verify no firewall blocking
- Check browser console for errors
- Architecture Overview - System design
- API Reference - Endpoint documentation