Closed aliciacatalina closed 1 year ago
Hi @aliciacatalina! While not documented in the wiki this is documented in the README.md inside the mockserver folder where it states the following:
Generate new mock data
(eMap team only): Assuming you have the app-backend running. Run the following:
node generate_mock_data.js
This will fill in the v5 mock data.
So there is currently no way for community contributors to update this data. With that said the map should color corectly with just running pnpm run start
in the mockserver folder (and soon it will work with pnpm run mockserver
in the web folder as well when #5082 is merged.
Closing this down as there is no response and this behavior is intentional.
Description
I was following the steps to setup the application here: https://github.com/electricitymaps/electricitymaps-contrib/wiki/Set-up-local-environment, everything is greatly documented, I only ran into a small issue when trying to paint the map on this step: https://github.com/electricitymaps/electricitymaps-contrib/wiki/Set-up-local-environment#running-the-frontend-map Nothing fails on the server logs, but the client is getting a 404 when calling for the data:
I was just missing to run
node generate_mock_data.js
insidemockserver/
so I think it would be useful to be in the docs. I can update them, but want to know if it makes sense. Thanks!