{"id":15365200,"url":"https://github.com/gu-stav/coaltransitions","last_synced_at":"2026-01-21T17:02:54.043Z","repository":{"id":48331817,"uuid":"180781562","full_name":"gu-stav/coaltransitions","owner":"gu-stav","description":"Research and Dialogue on the Future of Coal","archived":false,"fork":false,"pushed_at":"2023-06-10T00:52:06.000Z","size":4439,"stargazers_count":1,"open_issues_count":43,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-04-06T14:21:34.712Z","etag":null,"topics":["climate-change","coal","energy","gatsby","gatsbyjs","wordpress"],"latest_commit_sha":null,"homepage":"https://coaltransitions.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gu-stav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-04-11T11:52:43.000Z","updated_at":"2023-03-04T03:23:08.000Z","dependencies_parsed_at":"2023-09-24T12:53:35.515Z","dependency_job_id":null,"html_url":"https://github.com/gu-stav/coaltransitions","commit_stats":{"total_commits":472,"total_committers":3,"mean_commits":"157.33333333333334","dds":0.288135593220339,"last_synced_commit":"e145d9592b2b43b2cda311cfb6d8c15884404f5e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gu-stav/coaltransitions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu-stav%2Fcoaltransitions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu-stav%2Fcoaltransitions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu-stav%2Fcoaltransitions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu-stav%2Fcoaltransitions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gu-stav","download_url":"https://codeload.github.com/gu-stav/coaltransitions/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gu-stav%2Fcoaltransitions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28636658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["climate-change","coal","energy","gatsby","gatsbyjs","wordpress"],"created_at":"2024-10-01T13:14:11.635Z","updated_at":"2026-01-21T17:02:54.017Z","avatar_url":"https://github.com/gu-stav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Frontend for [coaltransitions.org](https://coaltransitions.org) build with\nGatsby. The data is fetched from a [wordpress backend](https://github.com/zoff-kollektiv/coaltransitions-cms).\n\n## Structure\n\n- `gatsby-config.js`: Contains the site title, the header and footer menu aswell\n  as the information which is used to fetch tweets from twitter\n- `netlify.toml`: Contains the legacy redirects from the old site\n- `src/pages`: All pages which don't have any parameters (frontpage, overviews ...)\n- `src/templates`: Pages which have input parameters (finding, publication ...)\n- `src/lib`: Helper functions, for page creation aswell as publication filtering\n- `src/components`: All components which are used in pages and templates to render\n  the pages. Components are reusable chunks of code.\n- `src/tokens.js`: Variables for colors, mediaqueries and fonts\n\n### Tweets\n\nTweets are embedded from the coaltransitions twitter account. `./functions/twitter-timeline.js`\nfunctions as a proxy, for authentication and data fetching. The function\nis deployed as an AWS Lambda function by netlify.\n\n#### Environment variables\n\n```\nWP_ENDPOINT: Wordpress Graphql endpoint\nWP_AUTH_USERNAME: Wordpress Basic auth username\nWP_AUTH_PASSWORd: Wordpress Basic auth password\n\n// to show recent tweets on the homepage you'll also need\n\nTWITTER_CONSUMER_KEY: Twitter consumer key\nTWITTER_CONSUMER_SECRET: Twitter consumer secret\nTWITTER_ACCESS_TOKEN: Twitter access token\nTWITTER_ACCESS_TOKEN_SECRET: Twitter access token secret\n```\n\n\n### Build status\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/f051ac1e-f9b0-424a-9477-dd9bdef6e833/deploy-status)](https://app.netlify.com/sites/coaltransitions/deploys)\n\n\n## Development\n\nFirst you need to install the project dependencies by running\n\n`npm run install`\n\nNow create a copy of the `.env.example` file and fill in the environment\nvariables. You should be able to start the development now by running:\n\n`npm run develop`\n\nThis should give you access to [localhost:8000](http://localhost:8000) where\nyou can access the development build of the site, with production data.\n\n\n### Functions\n\nTo fetch the data from the twitter account you also have to boot up the lamda\ndevelopment environment (check the required environment variables mentioned\nabove):\n\n`npm run serve-functions`\n\nAfterwards you should be able to access [localhost:9000](http://localhost:9000).\n\nGatsby automatically proxies the required requests to the functions server. No\nadditional setup is required.\n\nThe twitter search parameters can be found in `gatsby-config.js`.\n\n\n## Production build\n\nBy running `npm run build` gatsby creates a static version of the site in\n`./public`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgu-stav%2Fcoaltransitions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgu-stav%2Fcoaltransitions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgu-stav%2Fcoaltransitions/lists"}