{"id":31068647,"url":"https://github.com/kryptonbd/go-subly","last_synced_at":"2025-09-15T21:56:55.325Z","repository":{"id":302337188,"uuid":"968201825","full_name":"KryptonBD/go-subly","owner":"KryptonBD","description":"Subscription Management Application with Email Integration","archived":false,"fork":false,"pushed_at":"2025-04-17T17:13:23.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T04:44:10.986Z","etag":null,"topics":["go","go-chi","golang","subscription-management"],"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/KryptonBD.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-04-17T17:13:03.000Z","updated_at":"2025-06-30T16:38:52.000Z","dependencies_parsed_at":"2025-07-01T21:12:54.916Z","dependency_job_id":"9b8eb878-334d-4065-9c13-789097f39c6f","html_url":"https://github.com/KryptonBD/go-subly","commit_stats":null,"previous_names":["kryptonbd/go-subly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KryptonBD/go-subly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2Fgo-subly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2Fgo-subly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2Fgo-subly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2Fgo-subly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KryptonBD","download_url":"https://codeload.github.com/KryptonBD/go-subly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2Fgo-subly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275327138,"owners_count":25445049,"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-09-15T02:00:09.272Z","response_time":75,"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":["go","go-chi","golang","subscription-management"],"created_at":"2025-09-15T21:56:53.305Z","updated_at":"2025-09-15T21:56:55.313Z","avatar_url":"https://github.com/KryptonBD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subly - A Subscription Management Web Application with Email Integration\n\nSubly is a Go-based web application that provides subscription plan management with integrated email notifications and user authentication. It offers a secure and scalable solution for managing user subscriptions with features like email verification, session management, and invoice generation.\n\nThe application is built using modern Go practices and leverages PostgreSQL for data persistence, Redis for session management, and MailHog for email handling in development. It implements a clean architecture pattern with separation of concerns between handlers, models, and business logic.\n\n## Repository Structure\n\n```\n.\n├── cmd/web/                    # Main application code\n│   ├── config.go              # Application configuration and server setup\n│   ├── db.go                  # Database and Redis connection management\n│   ├── handlers.go            # HTTP request handlers\n│   ├── mailer.go              # Email service implementation\n│   ├── main.go                # Application entry point\n│   ├── middleware.go          # HTTP middleware functions\n│   ├── render.go              # Template rendering logic\n│   ├── routes.go              # URL routing definitions\n│   └── signer.go              # URL signing utilities\n├── data/                      # Data models and business logic\n│   ├── models.go              # Core model definitions\n│   ├── plan.go                # Subscription plan model\n│   └── user.go                # User model and authentication\n└── docker-compose.yml         # Docker services configuration\n```\n\n## Usage Instructions\n\n### Prerequisites\n\n- Go\n- Docker and Docker Compose\n- Makefile\n\nRename the `.env.example` to `.env` and fill in the required environment variables.\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone \u003crepository-url\u003e\ncd subly\n```\n\n2. Start the infrastructure services:\n\n```bash\ndocker-compose up -d\n```\n\n3. Install Go dependencies:\n\n```bash\ngo mod download\n```\n\n4. Run the application:\n\n```bash\nmake start\n```\n\n5. Access the application at `http://localhost/`.\n6. Access MailHog at `http://localhost:8025/` to view sent emails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fgo-subly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkryptonbd%2Fgo-subly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fgo-subly/lists"}