{"id":29734604,"url":"https://github.com/vonderklaas/social-network","last_synced_at":"2025-07-25T11:14:39.592Z","repository":{"id":161958175,"uuid":"636562646","full_name":"vonderklaas/social-network","owner":"vonderklaas","description":"A social networking backend built with Go. It features RESTful APIs for managing users, posts, and comments. It includes a modular structure, PostgreSQL, Docker, Redis, hot reloading, and more.","archived":false,"fork":false,"pushed_at":"2025-07-20T09:39:52.000Z","size":66590,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-20T11:29:15.098Z","etag":null,"topics":["docker","go","go-chi","golang","postgresql"],"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/vonderklaas.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":"2023-05-05T06:14:32.000Z","updated_at":"2025-07-20T09:39:57.000Z","dependencies_parsed_at":"2025-07-20T11:29:18.667Z","dependency_job_id":null,"html_url":"https://github.com/vonderklaas/social-network","commit_stats":null,"previous_names":["vonderklaas/rusty-do","vonderklaas/rust-cargo-ncurses","vonderklaas/go-network","vonderklaas/social-network"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vonderklaas/social-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonderklaas%2Fsocial-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonderklaas%2Fsocial-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonderklaas%2Fsocial-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonderklaas%2Fsocial-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vonderklaas","download_url":"https://codeload.github.com/vonderklaas/social-network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vonderklaas%2Fsocial-network/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266997208,"owners_count":24018935,"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-07-25T02:00:09.625Z","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":["docker","go","go-chi","golang","postgresql"],"created_at":"2025-07-25T11:14:37.223Z","updated_at":"2025-07-25T11:14:39.571Z","avatar_url":"https://github.com/vonderklaas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Folder Structure\n\n`/bin`: compiled binaries (e.g., `air`, build artifacts) \u003cbr /\u003e\n`/cmd/api`: main HTTP API server (entrypoint and route handlers) \u003cbr /\u003e\n`/cmd/migrate`: Database migration SQL files and seed logic \u003cbr /\u003e\n`/docs`: project documentation (designs, API specs, notes) \u003cbr /\u003e\n`/internal/db`: db connection utilities and seeding helpers \u003cbr /\u003e\n`/internal/env`: environment variable configuration and helpers \u003cbr /\u003e\n`/internal/store`: storage layer: database access logic for posts, users, etc. \u003cbr /\u003e\n`/scripts`: supporting SQL and shell scripts \u003cbr /\u003e\n\n### Order of Development\n\n1. Project Architecture:\n\n- Set Up Development Environment\n- Clean Layered Architecture\n\n2. Scaffolding API Server:\n\n- Set Up HTTP Server and API: net/http, go-chi\n- Add Hot Reloading: air\n- Environment Variables: direnv\n\n3. Databases:\n\n- Repository Pattern\n- Running PostgreSQL container on Docker\n- Configuring the DB Connection Pool\n- Persisting Data\n- SQL Migrations\n\n4. Posts CRUD:\n\n- Marshalling JSON\n- Creating a Post\n- Getting a Post by ID\n- Internal Errors Package\n- HTTP Payload Validation: go-validator\n- DB Relationships\n- SQL Joins\n- Adding Comments to Posts\n- Updating Posts: PATCH\n- Deleting Posts\n- Standardising JSON Responses\n- Optimistic Concurrency Control\n- Managing SQL Query Timeouts\n- Database Seeding\n\n5. The User Feed:\n\n- Creating User Profile\n- Get User By ID\n- Add Followers Table\n- SQL Indexes\n- User Feed Algorithm\n\n6. Filtering, Sorting, and Pagination:\n\n- Pagination\n- Sorting\n- Fuzzy Search\n\n7. Swagger\n\n- API Docs\n- Documented Routes\n\n8. Logging\n\n- Adding Structured Logging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonderklaas%2Fsocial-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvonderklaas%2Fsocial-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonderklaas%2Fsocial-network/lists"}