When making changes, create a branch with the name dev-[Jira issue name]
e.g. dev-SCRUM-7
and work on that. See deployment for
instructions on how to deploy your changes.
Initial page setup (e.g. title): /index.html
Router config (docs): /src/router.tsx
See other folders in src
for example files within.
Sync packages: npm install
Serve webpage locally: npm run dev
If you use WebStorm (Jetbrains),
npm run dev
and firebase deployment will be automatically set up as run configs from files in.run
Install Firebase tools: npm install -g firebase-tools
Login to Firebase: firebase login
Configure Firebase settings: firebase init
⚠️ Overwrites current settings!
Configure Firebase emulator(s): firebase init emulators
Start Firebase emulator(s): firebase emulators:start
⚠️ Do not usefirebase deploy
to deploy! This will circumvent GitHub!
Creating a tiles deployment to Firebase:
npm run build
firebase hosting:channel:deploy [Test Deployment Name]
Making a pull request
will automatically create a tiles deployment to Firebase (i.e. not
overwrite the production app). You should see a message below your new pull
request notifying you that your changes are being deployed. Click on
the link shown when this is complete to view your changes. The pull
request can them be merged into the master
branch from which it'll
be automatically deployed to https://budget-19.web.app/.