{"id":47947017,"url":"https://github.com/ddc/finances","last_synced_at":"2026-04-10T19:04:14.614Z","repository":{"id":349006696,"uuid":"1199783285","full_name":"ddc/finances","owner":"ddc","description":"Personal finance management app","archived":false,"fork":false,"pushed_at":"2026-04-03T20:07:35.000Z","size":336,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T08:50:00.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ddc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ddc","ko_fi":"ddc","custom":"https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ"}},"created_at":"2026-04-02T17:49:23.000Z","updated_at":"2026-04-03T20:07:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ddc/finances","commit_stats":null,"previous_names":["ddc/finances"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ddc/finances","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddc%2Ffinances","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddc%2Ffinances/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddc%2Ffinances/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddc%2Ffinances/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddc","download_url":"https://codeload.github.com/ddc/finances/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddc%2Ffinances/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31496769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"online","status_checked_at":"2026-04-07T02:00:07.164Z","response_time":105,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-04-04T08:49:58.740Z","updated_at":"2026-04-07T02:01:22.187Z","avatar_url":"https://github.com/ddc.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ddc","https://ko-fi.com/ddc","https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ","https://github.com/sponsors/ddc'","https://ko-fi.com/ddc'","https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ'"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/ddc/finances/refs/heads/main/frontend/public/favicon.svg\" alt=\"finances\" width=\"150\"\u003e\n  \u003cbr\u003e\n  Personal finance management app\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sponsors/ddc\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?style=plastic\u0026label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=ff69b4\" alt=\"Sponsor\"/\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://ko-fi.com/ddc\"\u003e\u003cimg src=\"https://img.shields.io/badge/Ko--fi-ddc-FF5E5B?style=plastic\u0026logo=kofi\u0026logoColor=white\u0026color=brightgreen\" alt=\"Ko-fi\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ\"\u003e\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-brightgreen.svg?style=plastic\u0026logo=paypal\u0026logoColor=white\" alt=\"Donate\"/\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg?style=plastic\u0026logo=creativecommons\u0026logoColor=FFFFFF\" alt=\"License: MIT\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/ddc/finances/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/ddc/finances?style=plastic\u0026logo=github\u0026logoColor=white\" alt=\"Release\"/\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://www.python.org/downloads\"\u003e\u003cimg src=\"https://img.shields.io/badge/python-3.14-blue.svg?style=plastic\u0026logo=python\u0026logoColor=3776AB\" alt=\"Python\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.djangoproject.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/Django-6.0-092E20.svg?style=plastic\u0026logo=django\u0026logoColor=white\" alt=\"Django\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://react.dev\"\u003e\u003cimg src=\"https://img.shields.io/badge/React-19-61DAFB.svg?style=plastic\u0026logo=react\u0026logoColor=white\" alt=\"React\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://bun.sh\"\u003e\u003cimg src=\"https://img.shields.io/badge/Bun-1.3-fbf0df.svg?style=plastic\u0026logo=bun\u0026logoColor=white\" alt=\"Bun\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/astral-sh/uv\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\u0026style=plastic\" alt=\"uv\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\u0026style=plastic\" alt=\"Ruff\"/\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/ddc/finances/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/ddc/finances?style=plastic\u0026logo=github\u0026logoColor=white\" alt=\"issues\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/ddc/finances\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/ddc/finances?token=Y43wp9vain\u0026style=plastic\u0026logo=codecov\" alt=\"codecov\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://sonarcloud.io/dashboard?id=ddc_finances\"\u003e\u003cimg src=\"https://img.shields.io/sonar/quality_gate/ddc_finances?server=https%3A%2F%2Fsonarcloud.io\u0026style=plastic\u0026logo=sonarqubecloud\u0026logoColor=white\" alt=\"Quality Gate Status\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/ddc/finances/actions/workflows/workflow.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/ddc/finances/workflow.yml?style=plastic\u0026logo=github\u0026logoColor=white\u0026label=CI%2FCD%20Pipeline\" alt=\"CI/CD Pipeline\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://actions-badge.atrox.dev/ddc/finances/goto?ref=main\"\u003e\u003cimg src=\"https://img.shields.io/endpoint.svg?url=https%3A//actions-badge.atrox.dev/ddc/finances/badge?ref=main\u0026label=build\u0026logo=github\u0026style=plastic\" alt=\"Build Status\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Stack](#stack)\n- [Timezone Handling](#timezone-handling)\n- [Setup](#setup)\n- [Development](#development)\n- [Running Tests](#running-tests)\n- [Deployment](#deployment)\n- [Local Development with Database](#local-development-with-database)\n- [License](#license)\n- [Support](#support)\n---\n\n## Stack\n\n| Layer           | Technology                                           |\n|-----------------|------------------------------------------------------|\n| Backend         | Django 6.0 + Django REST Framework                   |\n| Frontend        | React 19 + Vite + MUI + Recharts                     |\n| Database        | PostgreSQL                                           |\n| Auth            | Token-based (DRF TokenAuthentication)                |\n| i18n            | EN-US, PT-BR                                         |\n| Package Manager | uv (backend), bun (frontend)                         |\n| Linting         | ruff (backend), eslint (frontend)                    |\n| Testing         | pytest + testcontainers (backend), vitest (frontend) |\n| Deploy          | Docker Compose                                       |\n\n## Timezone Handling\n\n| Layer              | Timezone                                                        |\n|--------------------|-----------------------------------------------------------------|\n| **Database**       | UTC (always)                                                    |\n| **Django API**     | Returns UTC strings                                             |\n| **React frontend** | Converts to browser's local timezone via `toLocaleDateString()` |\n| **Django admin**   | Uses `DJANGO_TIME_ZONE` from `.env`                             |\n\nTimestamps are always stored in UTC. The frontend displays them in the user's browser timezone automatically. The\n`DJANGO_TIME_ZONE` env var only affects the Django admin panel.\n\n## Setup\n\n### 1. Create database user and database\n\n```sql\nSELECT pg_terminate_backend(pid)\n  FROM pg_stat_activity\n WHERE datname = 'finances'\n   AND pid \u003c\u003e pg_backend_pid();\nDROP\nDATABASE IF EXISTS finances;\nDROP ROLE if EXISTS finances;\nCREATE\nUSER finances WITH PASSWORD 'finances';\nCREATE\nDATABASE finances OWNER finances;\nGRANT ALL PRIVILEGES ON DATABASE\nfinances TO finances;\n```\n\n### 2. Configure environment\n\n```bash\ncp .env.example .env\n# Edit .env with your values\n```\n\nGenerate a secret key:\n\n```bash\npython3 -c \"import secrets; print(secrets.token_urlsafe(50))\"\n```\n\n### 3. Start the application\n\n```bash\ndocker compose up -d --build\n```\n\n### 4. Create admin user\n\n```bash\ndocker compose exec backend uv run --frozen --no-sync python manage.py seed_data\n```\n\nDefault credentials:\n\n- **Username:** admin\n- **Password:** admin123\n\nOr create one manually:\n\n```bash\ndocker compose exec backend uv run --frozen --no-sync python manage.py createsuperuser\n```\n\n## Development\n\n### Backend\n\nRequires [UV](https://docs.astral.sh/uv/getting-started/installation/) to be installed.\n\n```bash\ncd backend\nuv sync --all-groups\n```\n\n### Frontend\n\n```bash\ncd frontend\nbun install\nbun run dev\n```\n\n### Running tests\n\nFrom the `backend/` directory:\n\n```bash\n# All tests\nuv run poe tests\n\n# Backend only\nuv run poe test-backend              # unit tests + coverage\nuv run poe test-backend-integration  # integration tests (testcontainers)\nuv run poe test-backend-docker       # docker tests (hadolint, compose)\n\n# Frontend only\nuv run poe test-frontend             # unit tests\nuv run poe test-frontend-integration # integration tests\n\n# Linting\nuv run poe linter-backend            # ruff\nuv run poe linter-frontend           # eslint\n\n# Update dependencies\nuv run poe update-backend\nuv run poe update-frontend\n```\n\n## Deployment\n\n### Update and restart\n\n```bash\n./utilities/update.sh\n```\n\n### Start / Stop\n\n```bash\n./utilities/start.sh\n./utilities/stop.sh\n```\n\n## Local development with database\n\nFor local development with a containerized PostgreSQL:\n\n```bash\ndocker compose -f docker-compose-localdb.yml up -d\n```\n\nSet `.env`:\n\n```\nPOSTGRES_HOST=finances_database\n```\n\n## License\nReleased under the [MIT License](LICENSE)\n\n\n## Support\nIf you find this project helpful, consider supporting development.\n\n\u003ca href='https://github.com/sponsors/ddc' target='_blank'\u003e\u003cimg height='24' style='border:0px;height:24px;' src='https://img.shields.io/badge/Sponsor-❤-ea4aaa?style=plastic\u0026logo=github\u0026logoColor=white' border='0' alt='Sponsor on GitHub' /\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/ddc' target='_blank'\u003e\u003cimg height='30' style='border:0px;height:30px;' src='https://storage.ko-fi.com/cdn/kofi2.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\u003ca href='https://www.paypal.com/ncp/payment/6G9Z78QHUD4RJ' target='_blank'\u003e\u003cimg height='30' style='border:0px;height:30px;' src='https://www.paypalobjects.com/digitalassets/c/website/marketing/apac/C2/logos-buttons/optimize/44_Yellow_PayPal_Pill_Button.png' border='0' alt='Donate via PayPal' /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddc%2Ffinances","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddc%2Ffinances","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddc%2Ffinances/lists"}