git clone https://github.com/andyh2/comma-routes.git
cd comma-routes/comma-routes
npm install
node scripts/start.js
This will run a demo on localhost:3000 visualizing 20 sample routes.
To visualize your own comma routes, you need to obtain your comma access token.
- Log in on beta.comma.ai
- Open chrome JS console to obtain your comma access token:
getCookie("comma_access_token")
- replace YOUR_COMMA_ACCESS_TOKEN below:
cd comma-routes/routefetcher
export COMMA_AUTH=YOUR_COMMA_ACCESS_TOKEN
python3 routefetcher.py
mv *.json ../comma-routes/public/routes/ # this will overwrite sample data
Finally, follow the "running locally" steps above.
- Facebook create-react-app for react environment boilerplate
- Deck.gl