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 ./new-year.shand continue with step 8.
- Copy previous year:
cd prod && cp -r 2020 2021
- Remove wrs.jsand download latest fromhttps://uitslagen.wtos.nl/wrs.js.
- Increment year in title in index.html.
- Use prod/config.jsand paste the values intoconfig.jstemporarily.
- In package.jsonextent thebuildscript 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.jsandriders.js.
- Remove the console logs, stop the devserver 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.