Waka Commuter is a visualization of the 2018 Census commuter data, built for the There and back again competition.
This is competition code, so, well, it's not great. It uses Mapbox GL JS for maps, D3 for the graphs, and lit-element to keep everything from getting too messy. To keep things fast, datasets are pre-processed and served statically, using Netlify.
You will need node.js installed: https://nodejs.org/en.
Set the environment variable VITE_MAPBOX_TOKEN
to your Mapbox Token. You can get a free one from the Mapbox website.
npm run build
- to build everything - JS & datasets. You should run this first.npm start
- to serve the built version
npm run process
- to only process all the datasets into static json.npm run dev
for local development- Check
package.json
for more scripts.
- Every commit to master is deployed to Netlify automatically
- Available at https://commuter.waka.app