You need to have Node and npm installed. NPM, the node package manager, is installed when you install node.
You also need to have task installed:
Taskfile
npm install
Prerequisit: Install
task run
You can then reach the app on on http://localhost:4000
if port is not specified, it will open on port 3000.
To populate the Firebase dev database with a demo tournament containing 4 matches spread throughout the current day:
-
First, install Firebase Admin dependency:
npm install firebase-admin
-
Get your Firebase service account key from Firebase Console:
- Go to Project Settings → Service Accounts
- Click "Generate New Private Key"
-
Run via Taskfile:
task populate-demo SERVICE_ACCOUNT_KEY=/path/to/serviceAccountKey.json
Or set the environment variable first:
export FIREBASE_KEY_PATH=/path/to/serviceAccountKey.json task populate-demo SERVICE_ACCOUNT_KEY=/path/to/serviceAccountKey.json
The script is idempotent - running it again on the same day will add 4 more matches to the existing tournament. See scripts/POPULATE_DEMO_TOURNAMENT.md for more details.