{"id":25411289,"url":"https://github.com/ivangrana/Go-Gin-restAPI","last_synced_at":"2025-10-31T05:30:23.656Z","repository":{"id":277730338,"uuid":"933327202","full_name":"ivangrana/phinance-api-rest","owner":"ivangrana","description":"A financial management system API made with Go language, Gin and PostgreSQL","archived":false,"fork":false,"pushed_at":"2025-02-15T17:52:58.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T18:31:26.603Z","etag":null,"topics":["api-rest","backend","finance-management","gin","golang","gorm-orm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivangrana.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":"2025-02-15T17:34:51.000Z","updated_at":"2025-02-15T17:55:34.000Z","dependencies_parsed_at":"2025-02-15T18:41:38.580Z","dependency_job_id":null,"html_url":"https://github.com/ivangrana/phinance-api-rest","commit_stats":null,"previous_names":["ivangrana/phinance-api-rest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangrana%2Fphinance-api-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangrana%2Fphinance-api-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangrana%2Fphinance-api-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangrana%2Fphinance-api-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangrana","download_url":"https://codeload.github.com/ivangrana/phinance-api-rest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239114268,"owners_count":19583986,"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":["api-rest","backend","finance-management","gin","golang","gorm-orm"],"created_at":"2025-02-16T10:17:03.376Z","updated_at":"2025-10-31T05:30:23.648Z","avatar_url":"https://github.com/ivangrana.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phinance\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.16+\n- PostgreSQL\n- Docker\n\n### Installation\n\n1. Clone the repository\n2. Create a .env file in the root directory and add the following variables:\n\n```\nDB_USER=postgresql\nDB_PASSWORD=password\nDB_NAME=postgres\nDB_HOST=localhost\nDB_PORT=5432\n```\n\n3. Run the following command to start the database:\n\n```\ndocker-compose up -d\n```\n\n4. Run the following command to install the dependencies:\n\n```\ngo mod download\n```\n\n5. Run the following command to run the application:\n\n```\ngo run main.go\n```\n\n## Request workflow example:\n\n![image](https://github.com/user-attachments/assets/589a33a7-c36e-4613-a6ac-ff9d28448daf)\n\n## Components Diagram:\n![image](https://kroki.io/plantuml/svg/eNptVE1v1DAQvftXmJzgUPVeIVQo1QLqqss2wIH2YOIha-p4VrajCqH-d8Z2Etub7inz5mU-3rzspfPC-nHQ7JU_wAD8qIUyjHU4HNGA8bzZKMOvTa8M8Nfvd5_5_vqufdNw4Thh_B_j9Cvoexw9uJi38fGUsFVSangSNtQb_SHVGhaUPVftr9B4i1qDTUW7HE_Nf35zYHnmPST0wyh78Gt8g0K7NXwlPPRoFbyQa60wTnReoXkhuxX2EfzOohy7ul-9ySdhZBy7WPswY9MqNxhEnZinBT4KL34JR7ptbvfbVEDO2OoQO3S-t3D39SYSjylcnwMl6CTtEB-nSouyDzlMkhZA1LKIs4gFWKpXwJVsCX8-Xbi9TZNJj9W1KVFdOcdhohxN8_zNSDFMBqtRIhzm0DhK3nz50cYR_jx5xsJxzs7eTc7mF2R36JXzwZxsAkO-NOnF_E1wjxUpWz5waC3Hf6PlR4se4oAVe3EKcc8FGehcB680QbDcLDAXS8xVg1vuTaxNnDCu6aBZvxdEpneiRMQe3L1J7uBvKR2Pwdgyx2mr70IriqlfZ0HS_RR5o6n5JGKgbsCAjdQWHyHsUGhR8HLJmbc0DKzZ0oFKn50h1ZLIFWtyNXHos8Ot6kNnKnUJRtIf3397z5v6)\n\n## Database Diagram:\n\n![image](https://github.com/user-attachments/assets/315f0a81-e6fd-45ed-a839-4696963b69fc)\n\n\n## API endpoints\n\n| Method | Endpoint                | Description                  |\n| ------ | ----------------------- | ---------------------------- |\n| GET    | /users                  | Get all users                |\n| POST   | /users                  | Create a new user            |\n| GET    | /users/:id              | Get user by ID               |\n| PUT    | /users/:id              | Update user                  |\n| DELETE | /users/:id              | Delete user                  |\n| GET    | /categories             | Get all categories           |\n| POST   | /categories             | Create a new category        |\n| GET    | /categories/:category_id | Get category by ID           |\n| PUT    | /categories/:category_id | Update category              |\n| DELETE | /categories/:category_id | Delete category              |\n| GET    | /market-products        | Get all market products      |\n| POST   | /market-products        | Create a new market product  |\n| GET    | /market-products/:product_id | Get market product by ID     |\n| PUT    | /market-products/:product_id | Update market product        |\n| DELETE | /market-products/:product_id | Delete market product        |\n| GET    | /budgets                | Get all budgets              |\n| POST   | /budgets                | Create a new budget          |\n| GET    | /budgets/:budget_id     | Get budget by ID             |\n| PUT    | /budgets/:budget_id     | Update budget                |\n| DELETE | /budgets/:budget_id     | Delete budget                |\n| GET    | /goals                  | Get all goals                |\n| POST   | /goals                  | Create a new goal            |\n| GET    | /goals/:goal_id         | Get goal by ID               |\n| PUT    | /goals/:goal_id         | Update goal                  |\n| DELETE | /goals/:goal_id         | Delete goal                  |\n| GET    | /transactions           | Get all transactions         |\n| POST   | /transactions           | Create a new transaction     |\n| GET    | /transactions/:transaction_id | Get transaction by ID       |\n| PUT    | /transactions/:transaction_id | Update transaction          |\n| DELETE | /transactions/:transaction_id | Delete transaction          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangrana%2FGo-Gin-restAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangrana%2FGo-Gin-restAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangrana%2FGo-Gin-restAPI/lists"}