{"id":21355208,"url":"https://github.com/jlucaspains/github-charts","last_synced_at":"2025-03-16T05:24:00.764Z","repository":{"id":243453796,"uuid":"806630676","full_name":"jlucaspains/github-charts","owner":"jlucaspains","description":"A container app to track issues in GitHub Projects v2 and generate Agile charts.","archived":false,"fork":false,"pushed_at":"2025-01-20T10:47:47.000Z","size":511,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T17:47:20.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlucaspains.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T15:10:57.000Z","updated_at":"2024-12-30T11:30:30.000Z","dependencies_parsed_at":"2024-12-30T12:23:11.939Z","dependency_job_id":"583cf5e4-4de8-4535-855b-88d781c67383","html_url":"https://github.com/jlucaspains/github-charts","commit_stats":null,"previous_names":["jlucaspains/github-charts"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlucaspains%2Fgithub-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlucaspains%2Fgithub-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlucaspains%2Fgithub-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlucaspains%2Fgithub-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlucaspains","download_url":"https://codeload.github.com/jlucaspains/github-charts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243828821,"owners_count":20354556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-22T04:16:03.784Z","updated_at":"2025-03-16T05:24:00.735Z","avatar_url":"https://github.com/jlucaspains.png","language":"Go","readme":"GitHub Projects v2 has greatly evolved in recent years, however, it still lacks good charting support for Agile projects. github-charts is an alternative to expensive paid options to fulfill your Agile charting needs. This project is in its infancy and will very likely die in the future when GitHub decides to provide the capabilities we are adding here.\n\nBecause project history is not rich enough yet, we are using the GitHub API to pull project data and store it in a PostgreSQL database. Then, we can chart the data using the Chart.js library and a simple Svelte app. The jobs app, api app, and Svelte app are all bundled in a single container image for easy of use.\n\n## Getting Started\nYou need a PostgresSQL database to store the project data. You can use the following Docker command to start a PostgreSQL container:\n\n```bash\ndocker network create github-charts\ndocker run --name github-charts-db --network github-charts -e POSTGRES_PASSWORD=mysecretpassword -d postgres\ndocker exec -it github-charts-db psql -U postgres -c \"CREATE DATABASE ghcharts;\"\n```\n\nThen, you can start the GitHub Charts container with the following command:\n\n```bash\ndocker run -it -p 8000:8000 `\n    --env ENV=DEV `\n    --env DATA_PULL_JOB_CRON=\"*/5 * * * *\" `\n    --env DB_CONNECTION=\"postgres://postgres:mysecretpassword@github-charts-db:5432/ghcharts?sslmode=disable\" `\n    --env GH_PROJECT_1=\"repo_owner=jlucaspains repo_name=sharp-cooking-web project=7 token=mygithubtoken\" `\n    --network github-charts `\n    jlucaspains/github-charts\n```\n\nOnce the first job runs (watch the logs), you should see projects, iterations, and issues in the database. You can then access the Svelte app at http://localhost:8000.\n\n![Charts](./docs/demo.jpeg)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlucaspains%2Fgithub-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlucaspains%2Fgithub-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlucaspains%2Fgithub-charts/lists"}