{"id":24489730,"url":"https://github.com/batugkocak/social","last_synced_at":"2026-02-15T01:33:15.496Z","repository":{"id":270964408,"uuid":"911825684","full_name":"batugkocak/Social","owner":"batugkocak","description":"A production-ready Go backend service implementing a social media platform with features like post management, user authentication, and commenting system. Built using modern Go practices and following clean architecture principles.","archived":false,"fork":false,"pushed_at":"2025-01-21T16:01:20.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T09:52:15.950Z","etag":null,"topics":["chi","go","golang","goose","postgres","postgresql","validation"],"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/batugkocak.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-01-04T00:23:23.000Z","updated_at":"2025-02-15T20:02:10.000Z","dependencies_parsed_at":"2025-01-19T14:26:37.911Z","dependency_job_id":"bc47f6d1-815a-4891-8838-b56910b2d6e3","html_url":"https://github.com/batugkocak/Social","commit_stats":null,"previous_names":["batugkocak/social"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/batugkocak/Social","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batugkocak%2FSocial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batugkocak%2FSocial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batugkocak%2FSocial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batugkocak%2FSocial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batugkocak","download_url":"https://codeload.github.com/batugkocak/Social/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batugkocak%2FSocial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274989299,"owners_count":25386550,"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-13T02:00:10.085Z","response_time":70,"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":["chi","go","golang","goose","postgres","postgresql","validation"],"created_at":"2025-01-21T17:15:42.405Z","updated_at":"2026-02-15T01:33:15.470Z","avatar_url":"https://github.com/batugkocak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social-Go\n\nA simple social media backend application built with Go.\n\n## Description\nThis project implements a basic social media backend with user management, posts, and interactions.\n\n## Features\n\n- User management (registration, authentication)\n- Post creation and management\n- PostgreSQL database\n- Docker containerization\n- Database migrations using Goose\n\n## Prerequisites\n\n- Go 1.23 or later\n- Docker and Docker Compose\n- [Goose](https://github.com/pressly/goose) for database migrations\n\n## Setup\n\n1. Clone the repository\n```bash\ngit clone https://github.com/batugkocak/social-go.git\ncd social-go\n```\n\n2. Environment Setup\n\nCreate a `.env` file in the root directory:\n\n```env\nENV = development\nADDR=:8080\nDB_ADDR=postgres://admin:adminPassword@localhost/social?sslmode=disable\nDB_MAX_OPEN_CONNS=30\nDB_MAX_IDLE_CONNS=30\nDB_MAX_IDLE_TIME=15min\n```\n\n3. Start Docker Services\n\n```bash\ndocker-compose up -d\n```\n\nThis will start the PostgreSQL database on port 5432.\n\n4. Database Migrations\n\nInstall Goose:\n\n```bash\ngo install github.com/pressly/goose/v3/cmd/goose@latest\n```\n\nRun migrations:\n\n```bash\n# Set your database connection string\nexport GOOSE_DRIVER=postgres\nexport GOOSE_DBSTRING=\"postgres://admin:adminPassword@localhost/social?sslmode=disable\"\n\n# Run migrations\ngoose up\n```\n\nTo create a new migration:\n\n```bash\ngoose create name_of_your_migration sql\n```\n\n5. Seed the database (optional)\n```bash\nmake seed\n```\n\n6. Run the Application\n\n```bash\n# Run directly\ngo run ./cmd/api\n\n# Or use air for hot reload (if installed)\nair\n```\n\n## API Endpoints\n\n- `GET /v1/health` - Health check endpoint\n- More endpoints documentation coming soon...\n\n## Development\n\nThe project uses:\n\n- Chi router for HTTP routing\n- PostgreSQL for data storage\n- Docker for containerization\n- Goose for database migrations\n\n## Project Structure\n\n```\n.\n├── cmd/\n│   ├── api/          # Main application\n│   └── migrate/      # Database migrations\n├── internal/\n│   ├── db/          # Database connection\n│   ├── env/         # Environment configuration\n│   ├── scripts/     # Database scripts\n│   └── store/       # Data access layer\n└── docker-compose.yml\n```\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatugkocak%2Fsocial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatugkocak%2Fsocial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatugkocak%2Fsocial/lists"}