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
- 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. - Add a console.log with JSON.stringify for the races, results and riders in
src/index.js
. - Copy the arrays to
prod/year/
/races.js
,results.js
andriders.js
. - Remove the console logs and revert
config.js
. - 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. npm run build
.- Commit & push.
- Export firebase database as backup. Clear the firebase database.
- Put
{ "races": { }, "results": { }, "riders": { } }
inempty.json
and import it into the database. - Add a test rider, race & result. Verify if it works. Clear those test rows when real data is created.