{"id":36458691,"url":"https://github.com/arya2004/xyfin","last_synced_at":"2026-01-15T02:24:21.799Z","repository":{"id":331982308,"uuid":"828562945","full_name":"arya2004/xyfin","owner":"arya2004","description":"xyfin","archived":false,"fork":false,"pushed_at":"2024-08-15T18:33:30.000Z","size":161,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T01:33:02.467Z","etag":null,"topics":["docker","golang","grpc","kubernetes","postgresql","redis"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/zieglernattacatalyst/xyfin","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/arya2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2024-07-14T14:24:08.000Z","updated_at":"2025-08-03T11:41:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arya2004/xyfin","commit_stats":null,"previous_names":["arya2004/xyfin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arya2004/xyfin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arya2004%2Fxyfin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arya2004%2Fxyfin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arya2004%2Fxyfin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arya2004%2Fxyfin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arya2004","download_url":"https://codeload.github.com/arya2004/xyfin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arya2004%2Fxyfin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"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":["docker","golang","grpc","kubernetes","postgresql","redis"],"created_at":"2026-01-11T23:50:58.046Z","updated_at":"2026-01-15T02:24:21.793Z","avatar_url":"https://github.com/arya2004.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xyfin \n\n\n## Prerequisites\n\n- Docker\n- PostgreSQL\n- Go\n- `migrate` tool for database migrations\n- `sqlc` for Go code generation from SQL queries\n- Protocol Buffers (`protoc`) for gRPC\n\n## Setup\n\n### 1. Network Setup\n\nFirst, create a Docker network for the application:\n\n```bash\nmake network\n```\n\n### 2. Database Setup\n\nTo set up the PostgreSQL database, run:\n\n```bash\nmake postgres\n```\n\nAfter the database container is running, create the `xyfin` database:\n\n```bash\nmake createdb\n```\n\nYou can drop the database using:\n\n```bash\nmake dropdb\n```\n\n### 3. Running the Server\n\nTo start the Xyfin server, use:\n\n```bash\nmake server\n```\n\n### 4. Database Migrations\n\nTo apply all database migrations, run:\n\n```bash\nmake migrateup\n```\n\nTo apply a single migration, use:\n\n```bash\nmake migrateup1\n```\n\nTo rollback all migrations:\n\n```bash\nmake migratedown\n```\n\nTo rollback a single migration:\n\n```bash\nmake migratedown1\n```\n\n### 5. Code Generation\n\nGenerate Go code from SQL queries using:\n\n```bash\nmake sqlc\n```\n\n### 6. Protocol Buffers and gRPC\n\nTo regenerate Protocol Buffers and gRPC code:\n\n```bash\nmake proto\n```\n\n### 7. Testing\n\nRun the test suite with:\n\n```bash\nmake test\n```\n\n### 8. Mock Generation\n\nGenerate mock implementations for testing:\n\n```bash\nmake mock\n```\n\n### 9. Additional Services\n\nStart a Redis container:\n\n```bash\nmake redis\n```\n\n## Start Command\n\nTo start the Xyfin server with the necessary database connection, use the following command:\n\n```bash\nmake run\n```\n\nThis command starts the previously created Docker container for PostgreSQL and runs the Xyfin application.\n\n## Documentation\n\nTo build database documentation:\n\n```bash\nmake db_docs\n```\n\nTo generate a SQL schema from the DBML:\n\n```bash\nmake db_schema\n```\n\n## Development Tools\n\n- **Evans CLI**: gRPC CLI client for testing your gRPC services.\n\n```bash\nmake evans\n```\n\n## Contributing\n\n1. Fork the repository.\n2. Create a feature branch.\n3. Commit your changes.\n4. Push to your branch.\n5. Create a new Pull Request.\n\n## License\n\nXyfin is licensed under the MIT License. See [LICENSE](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farya2004%2Fxyfin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farya2004%2Fxyfin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farya2004%2Fxyfin/lists"}