A free software game to discover the orders of magnitude of the CO2 footprint in our daily life and raise awareness about climate change.
This application is based on the work done by Thomas James Watson (thank you! ❤️) for wikitrivia. Original source code on github.
This project is using the open data provided by ADEME (Agence de l'environnement et de la maîtrise de l'énergie, the french State agency working on climate change). Raw data are avaible on ADEME website, with a nice website for users, or through an API.
This is the early beginning of the project and it has several limitations at the moment:
- It is only available in french, as that's the only language in which ADEME is providing the information. We plan to discuss with them to see if they can provide at least english as well.
- It is using the french CO2 data based on France characteristics. The biggest difference with other countries is a very low carbon footprint for electricy consumption as France has mainly low carbon electrical plants. The CO2 number would be very different in other countries like those using coal power plants for example.
- It is ugly and buggy at the moment 😅 but we hope to improve this in the short term 🥳
Every contribution to the project is welcome! By contributing, you accept that your work is going to be placed under the AGPL licence (see the LICENSE file).
This project is using the NextJS framework, itself based on ReactJS. NodeJS 18.17.0 or higher is required to build and run the project.
npm install
npm run i18n-compile
npm run dev
Then visit http://localhost:3000/ to preview the website.
disCO2very is using Lingui to manage translation. If you add or modify any sentences in the app, you have to run:
npm run i18n-extract
This will modify the english keys in locales/en/messages.po
. Search for the ones starting with #~
: they are now outdated and you should delete them.
Then go in the other languages files like locales/fr/messages.po
and search for empty strings ""
to add the missing translation.
Once done, run:
npm run i18n-compile
To build a static version of the website to the out
folder, that you can then deploy anywhere (it's plain HTML + JS, no server needed) run:
npm run build