Prerequisites:
- Node LTS
- Yarn LTS
Get code:
git clone https://github.com/michie1/wrs_elm &&
cd wrs_elm
Install dependencies:
yarn
Run dev mode:
yarn dev
Test:
yarn test
Check http://localhost:8080
- Run
./new-year.sh
and continue with step 8. - Copy previous year:
cd prod && cp -r 2020 2021
- Remove
wrs.js
and download latest fromhttps://uitslagen.wtos.nl/wrs.js
. - Increment year in title in
index.html
. - Use
prod/config.js
and paste the values intoconfig.js
temporarily. - In
package.json
extent thebuild
script for the newly added year. - In de
sidebar
(App/View.elm
), add link to the newly added year around line 114. - Add a console.log with JSON.stringify for the races, results and riders in
src/index.js
. - Copy the arrays to
prod/$previous_year/
/races.js
,results.js
andriders.js
. - Remove the console logs, stop the
dev
server and revert./config.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.