This is a [Svelte] project scaffolded with [Vite]. It includes a deployment setup using [gh-pages] to publish the built site to GitHub Pages.
The result is the Tracker globe: https://peacerep.github.io/tracker_globe/ and also onrender version: https://globe-tracker.onrender.com/ or https://pax-globe-tracker.onrender.com/
Both should get updated once deploy (see instructions below), but onrender may need a manual update if does not auto update.
- [
Node.js] - [
Yarn] installed globally
yarn install
docker run --rm -it -v "${PWD}:/app" -w /app node:22 yarn install
yarn dev
docker run --rm -it -v "${PWD}:/app" -w /app -p 5173:5173 node:22 sh -lc "yarn dev --host 0.0.0.0"
yarn build
docker run --rm -it -v "${PWD}:/app" -w /app node:22 yarn build
yarn deploy
docker run --rm -it -v "${PWD}:/app" -w /app node:22 yarn deploy
-
Replace 3 csv and 1 json file in public/data with monthly updates:
agt_point_data.csv,country_data.csv,filled_polygon_data_5.csv,info_section.json -
Check if all is good with:
yarn dev- Build:
yarn build- Deploy:
yarn deploy- Git:
git add .
git commit -m "message"
git push- If need to update legend for year edit
src/App.svelte - May need PAT from github to build and deploy (for the peacerep organisation - not personal account)