{"id":22547463,"url":"https://github.com/matsjfunke/diet_code","last_synced_at":"2026-04-11T06:05:29.293Z","repository":{"id":257020384,"uuid":"850842117","full_name":"matsjfunke/diet_code","owner":"matsjfunke","description":"fullstack react/fastapi web app about my passion for deleting code","archived":false,"fork":false,"pushed_at":"2025-03-24T15:28:46.000Z","size":996,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T16:33:25.146Z","etag":null,"topics":["axios","docker","docker-compose","fastapi","react","traefik"],"latest_commit_sha":null,"homepage":"https://diet-code.dev","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/matsjfunke.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-01T23:28:30.000Z","updated_at":"2025-01-15T03:52:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"75be5d8e-ea9c-467f-b739-4d67bd410c30","html_url":"https://github.com/matsjfunke/diet_code","commit_stats":null,"previous_names":["matsjfunke/diet_code"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsjfunke%2Fdiet_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsjfunke%2Fdiet_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsjfunke%2Fdiet_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsjfunke%2Fdiet_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsjfunke","download_url":"https://codeload.github.com/matsjfunke/diet_code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999596,"owners_count":20707568,"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":["axios","docker","docker-compose","fastapi","react","traefik"],"created_at":"2024-12-07T15:11:57.761Z","updated_at":"2025-12-30T23:20:44.800Z","avatar_url":"https://github.com/matsjfunke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diet Code\n\na web app that ranks developers productivity based on amount of deletions and spreads the gospel of deleting code\n\n## Run locally\n\n```sh\ndocker-compose up --build\n```\n\n**Backend:**\n\n- access localhost:8000/docs for fastapi dashboard -\u003e for testing specific endpoints\n- access localhost:8000/openapi.json to generate the OpenAPI documentation\n\n**Frontend:**\n\n- access localhost:3000 and interact with the UI\n\n## Deployment on Server\n\n\n```sh\n# rsync files to server\ncd diet-code\nrsync -av --exclude-from='.rsyncignore' -e \"ssh -i ~/.ssh/\u003cprivate-key\u003e\" . \u003cuser\u003e@\u003cip-address\u003e:diet-code\n\n# ssh into server\n\nssh -i ~/.ssh/diet-code root@\u003cip-address\u003e\n\n# use the deployment script to automate docker \u0026 docker-compose installation, and starting docker containers\nchmod +x deploy.sh\n./deploy.sh\n```\n\ngo to https://diet-code.dev/taste and try to taste the diet code ranking for any public repo with contributors (try: https://github.com/matsjfunke/psychopy-install-setup)\n\nto stop containers use:\n```sh\ndocker-compose -f docker-compose.prod.yml down\n```\n\n### Deploy on VPS with another webapp running\n\nto deploy diet-code along with another webapp on one server use `docker-compose.prod.shared.yml`\n\n```sh\n# Build the images\ndocker-compose -f docker-compose.prod.shared.yml build\n\n# Connect Traefik to the diet-code network\n# Network name is prefixed with directory name (diet-code_) by Docker Compose\ndocker network connect diet-code_diet-code-web traefik\n\n# Start the services\ndocker-compose -f docker-compose.prod.shared.yml up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsjfunke%2Fdiet_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsjfunke%2Fdiet_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsjfunke%2Fdiet_code/lists"}