{"id":29978992,"url":"https://github.com/bashlui/go-flow","last_synced_at":"2025-08-22T08:08:16.941Z","repository":{"id":308093836,"uuid":"1031592863","full_name":"bashlui/go-flow","owner":"bashlui","description":"Backend API built with Go that provides real-time financial market insights. It ingests live stock data and news headlines and some more.","archived":false,"fork":false,"pushed_at":"2025-08-04T04:51:31.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T06:39:17.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/bashlui.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,"zenodo":null}},"created_at":"2025-08-04T03:33:57.000Z","updated_at":"2025-08-04T04:51:34.000Z","dependencies_parsed_at":"2025-08-04T06:39:19.770Z","dependency_job_id":"176855b4-e436-4a44-aa12-8242a8922737","html_url":"https://github.com/bashlui/go-flow","commit_stats":null,"previous_names":["bashlui/go-flow"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bashlui/go-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashlui%2Fgo-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashlui%2Fgo-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashlui%2Fgo-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashlui%2Fgo-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashlui","download_url":"https://codeload.github.com/bashlui/go-flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashlui%2Fgo-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271606595,"owners_count":24788979,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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":"2025-08-04T12:43:10.798Z","updated_at":"2025-08-22T08:08:16.932Z","avatar_url":"https://github.com/bashlui.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Flow\n\n\u003e **⚠️ Development Status**: This project is currently under active development. Features and APIs are subject to change.\n\n## Overview\n\nGo Flow is a backend API built with Go (Golang) that provides comprehensive financial market data and insights. The application integrates with external financial APIs to deliver real-time stock quotes, historical data, and portfolio management capabilities through a clean REST API.\n\n## Features\n\n### 🚀 Current Features\n- **Stock Data Integration**: Fetch real-time stock quotes and historical data from Alpha Vantage API\n- **Database Storage**: PostgreSQL database with proper migrations for data persistence\n- **RESTful API**: Clean HTTP endpoints for stock data retrieval and management\n- **Docker Support**: Containerized PostgreSQL database setup\n- **Repository Pattern**: Clean architecture with separation of concerns\n\n### 🔄 In Development\n- User authentication and authorization\n- Portfolio management and tracking\n- Stock watchlists and alerts\n- Technical indicators and analysis\n- News headlines integration\n- WebSocket support for real-time updates\n\n## Tech Stack\n\n- **Backend**: Go (Golang) with Gin web framework\n- **Database**: PostgreSQL with pgx driver\n- **External APIs**: Alpha Vantage for financial data\n- **Containerization**: Docker \u0026 Docker Compose\n- **Migration**: Custom migration system\n\n## Project Structure\n\n```\ngo-flow/\n├── cmd/\n│   ├── server/          # Main server application\n│   └── migrate/         # Database migration runner\n├── internal/\n│   ├── api/\n│   │   └── handler/     # HTTP request handlers\n│   ├── models/          # Data models and structs\n│   ├── repository/      # Database layer\n│   └── service/         # Business logic and external API clients\n├── db/\n│   └── migrations/      # SQL migration files\n├── docker-compose.yaml  # Database container setup\n├── Makefile            # Development commands\n└── .env                # Environment variables\n```\n\n## Getting Started\n\n### Prerequisites\n- Go 1.19+ installed\n- Docker and Docker Compose\n- Alpha Vantage API key (free at [alphavantage.co](https://www.alphavantage.co/support/#api-key))\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/bashlui/go-flow.git\n   cd go-flow\n   ```\n\n2. **Set up environment variables**\n   ```bash\n   cp .env.example .env\n   # Edit .env with your configuration\n   ```\n\n3. **Start the database**\n   ```bash\n   docker-compose up -d\n   ```\n\n4. **Run database migrations**\n   ```bash\n   make migrate\n   ```\n\n5. **Install dependencies**\n   ```bash\n   make deps\n   ```\n\n6. **Start the server**\n   ```bash\n   make run\n   ```\n\nThe API will be available at `http://localhost:8080`\n\n## Development\n\n### Available Make Commands\n\n```bash\nmake migrate    # Run database migrations\nmake run       # Start the development server\nmake build     # Build the application binaries\nmake deps      # Install/update dependencies\nmake clean     # Clean build artifacts\nmake test      # Run tests\n```\n\n### Environment Variables\n\n```env\nDATABASE_URL=postgres://goflow_user:password@localhost:5432/goflow_db?sslmode=disable\nALPHA_VANTAGE_API_KEY=your_api_key_here\nPORT=8080\n```\n\n## Architecture Notes\n\n### Design Patterns\n- **Repository Pattern**: Database operations are abstracted through interfaces\n- **Service Layer**: Business logic separated from HTTP handlers\n- **Dependency Injection**: Services and repositories are injected into handlers\n\n### Code Organization\n- `handlers/`: HTTP request/response handling\n- `services/`: External API clients and business logic\n- `repository/`: Database operations and queries\n- `models/`: Data structures and domain models\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashlui%2Fgo-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashlui%2Fgo-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashlui%2Fgo-flow/lists"}