{"id":26464762,"url":"https://github.com/yuribodo/spendify","last_synced_at":"2026-05-04T16:36:19.912Z","repository":{"id":279327304,"uuid":"938414812","full_name":"yuribodo/spendify","owner":"yuribodo","description":"Spendify is a modern personal finance API built with Fastify. It tracks expenses, revenues, and financial categories via RESTful endpoints with JWT authentication for secure, user-specific data. Optimized for performance, Spendify simplifies managing your finances.","archived":false,"fork":false,"pushed_at":"2025-03-19T02:17:29.000Z","size":369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T03:24:20.364Z","etag":null,"topics":["fastify","node","typescript","vitest"],"latest_commit_sha":null,"homepage":"https://spendify-39pp.onrender.com/docs","language":"TypeScript","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/yuribodo.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":"2025-02-24T23:18:11.000Z","updated_at":"2025-03-18T03:50:12.000Z","dependencies_parsed_at":"2025-02-25T02:31:05.753Z","dependency_job_id":"3085e6d8-cdfe-4579-aa61-6832102b2895","html_url":"https://github.com/yuribodo/spendify","commit_stats":null,"previous_names":["yuribodo/spendify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuribodo%2Fspendify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuribodo%2Fspendify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuribodo%2Fspendify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuribodo%2Fspendify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuribodo","download_url":"https://codeload.github.com/yuribodo/spendify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244394469,"owners_count":20445634,"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":["fastify","node","typescript","vitest"],"created_at":"2025-03-19T08:48:40.384Z","updated_at":"2026-05-04T16:36:19.373Z","avatar_url":"https://github.com/yuribodo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spendify 💰\n\nA personal financial management application built with Fastify, following SOLID principles.\n\n## 📝 About the Project\n\nSpendify is a complete API for personal finance management, allowing users to track expenses and income, categorize transactions, generate reports, and gain financial insights. Built with a focus on development best practices and security.\n\n## 🚀 Features\n\n### User Management\n- ✅ User registration with email and password\n- ✅ User login\n- ✅ Password recovery via email\n- ✅ Profile updates (name, email, and password)\n\n### Expense Management\n- ✅ Create expenses (description, date, value, category, payment method)\n- ✅ View all expenses with pagination\n- ✅ Filter expenses (by date, category, payment method, amount)\n- ✅ View specific expense details\n- ✅ Update existing expenses\n- ✅ Delete expenses\n\n### Revenue Management\n- ✅ Add income (description, date, value, category, income source)\n- ✅ View all revenue with pagination\n- ✅ Filter revenue (by date, category, income source, amount)\n- ✅ View specific revenue details\n- ✅ Update existing revenue \n- ✅ Delete revenue\n\n### Category Management\n- ✅ Create categories for both expenses and revenue \n- ✅ View all available categories \n- ✅ Update categories\n- ✅ Delete unused categories\n\n### Reports and Insights\n- ✅ Financial summary with selectable period\n- ✅ Categorized reports (monthly expenses, expense categories, income sources) \n- ✅ Export financial data to CSV or JSON \n\n### Security and Authentication\n- ✅ JWT authentication for protected endpoints \n- ✅ Restricted access to users' own financial data \n\n## 🔒 Business Rules\n\n- ✅ Revenue cannot have negative values\n- ✅ Revenue cannot be created without a category\n- ✅ Expenses cannot have negative values\n- ✅ Expenses cannot be created without a category\n- ✅ Categories in use cannot be deleted\n- ✅ Financial records older than 6 months cannot be edited or deleted \n- ✅ Notification when monthly expenses exceed 80% of income \n- ✅ Calculation and display of remaining monthly budget\n\n## 🛠️ Technologies Used\n\n- [Node.js](https://nodejs.org/)\n- [Fastify](https://www.fastify.io/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [Vitest](https://vitest.dev/) (for testing)\n- SOLID principles, Clean Architecture, and DDD\n\n## 🏗️ Non-Functional Requirements\n\n- High concurrency (efficiently handling multiple requests)\n- Pagination for expense and revenue listings\n- Optimization with caching for repeated queries\n- ACID-compliant database\n- Error handling for failed requests\n- Encryption of sensitive data\n- Rate limiting to prevent abuse\n- Logging of failed login attempts\n- Modular code following SOLID principles and DDD\n- Unit and integration tests\n\n## 📋 Prerequisites\n\n- Node.js (v14+)\n- NPM or Yarn\n- Database (PostgreSQL, MySQL, etc.)\n\n## 🚀 How to Run\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yuribodo/spendify.git\ncd spendify\n```\n\n2. Install dependencies:\n```bash\nnpm install\n# or\nyarn install\n```\n\n3. Configure environment variables:\n```bash\ncp .env.example .env\n# Edit the .env file with your settings\n```\n\n4. Run database migrations:\n```bash\nnpm run migrate\n# or\nyarn migrate\n```\n\n5. Start the frontend:\n```bash\ncd frontend\n\nnpm run dev\n```\n\n6. Start the backend:\n```bash\ncd backend\n\nnpm run start:dev\n```\n\n## 🧪 Tests\n\nRun tests with the command:\n```bash\nnpm run test\n# or\nyarn test\n```\n\n## 🤝 Contributing\n\n1. Fork the project\n2. Create a new branch (`git checkout -b feature/new-feature`)\n3. Commit your changes (`git commit -m 'Add new feature'`)\n4. Push to the branch (`git push origin feature/new-feature`)\n5. Open a Pull Request following the project pattern\n\n### Pull Request Pattern\n- 🍕 Feature\n- 🐛 Bug Fix\n- 🎨 Style\n- 🧑‍💻 Code Refactor\n- 🔥 Performance Improvements\n- ✅ Test\n- 🤖 Build\n- 📦 Chore\n- ⏩ Revert\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuribodo%2Fspendify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuribodo%2Fspendify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuribodo%2Fspendify/lists"}