Prerequisites:
- Node LTS
- Yarn LTS
Get code:
git clone https://github.com/michie1/wrs_elm &&
cd wrs_elmInstall dependencies:
npm install --legacy-peer-deps
npm install -g elm
npm run makeRun dev mode:
npm run devTest:
npm run testCheck http://localhost:8080
- Run
node scripts/new-year.js [--year <year>].- Copies the last archived prod folder, updates the year specific
index.html, downloads the latestwrs.js, switchesconfig.jsto the production credentials (a backup is stored in.config.dev.backup.js), extends thepackage.jsonbuild script and inserts the new link into the Elm sidebar.
- Copies the last archived prod folder, updates the year specific
- Export the Firebase data into the new prod folder:
node scripts/export-year-data.js [--year <year>] - Restore your local dev credentials by copying
.config.dev.backup.jsback toconfig.js. npm run build.- Commit & push.
- Export firebase database as backup. Clear the firebase database.
- Add a test rider, race & result. Verify if it works. Clear those test rows when real data is created.