This is the source code repository for the campaign website: https://free-iea-data.com
Inspired by this excellent analysis: https://ourworldindata.org/iea-open-data
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Locale data is hosted on a Google sheet to allow for easy collaboration. Running node getData.js
updates the list
of allowed locales to locales.json
.
For private Google sheets:
- Provision a Google service account
- Add the service account's email as a collaborator to the sheet
- Either provide the service account as a
./service-account.json
file or as a stringifiedSERVICE_ACCOUNT
environment variable - Provide the
SHEET_ID
as an environment variable
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!