{"id":51320699,"url":"https://github.com/marceloxhenrique/gopportunities","last_synced_at":"2026-07-01T13:02:16.402Z","repository":{"id":351650975,"uuid":"1161250199","full_name":"marceloxhenrique/gopportunities","owner":"marceloxhenrique","description":"A REST API built with Go and Gin for managing job opportunities.","archived":false,"fork":false,"pushed_at":"2026-05-06T20:51:10.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T22:35:14.776Z","etag":null,"topics":["gin-gonic","golang","gorm-orm","sqlite"],"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/marceloxhenrique.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-18T22:37:11.000Z","updated_at":"2026-05-06T20:51:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marceloxhenrique/gopportunities","commit_stats":null,"previous_names":["marceloxhenrique/gopportunities"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marceloxhenrique/gopportunities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Fgopportunities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Fgopportunities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Fgopportunities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Fgopportunities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marceloxhenrique","download_url":"https://codeload.github.com/marceloxhenrique/gopportunities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marceloxhenrique%2Fgopportunities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35007278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["gin-gonic","golang","gorm-orm","sqlite"],"created_at":"2026-07-01T13:02:15.387Z","updated_at":"2026-07-01T13:02:16.397Z","avatar_url":"https://github.com/marceloxhenrique.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Opportunities API\n\n## A REST API built with **Go** and **Gin** for managing job opportunities. This project focuses on building and testing CRUD operations using GORM with a SQL database, along with an in-memory repository for testing, and clear separation between handlers and data access logic.\n\n## Features\n\n- Create a job opening\n- List all openings\n- Get opening by ID\n- Update an opening\n- Delete an opening\n- In-memory repository (no database required)\n- Unit tests for handlers\n\n---\n\n## Project Structure\n\n```\n.\n├── config/         # App configuration\n├── docs/           # Documentation\n├── handler/        # HTTP handlers\n├── repository/     # Data access layer\n├── router/         # Route definitions\n├── schemas/        # Data models\n└── main.go         # Entry point\n```\n\n---\n\n## Installation\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/marceloxhenrique/gopportunities.git\ncd gopportunities\n```\n\n### 2. Install dependencies\n\n```bash\ngo mod tidy\n```\n\n### 3. Run the application\n\n```bash\ngo run main.go\n```\n\nServer will start on:\n\n```\nhttp://localhost:8080\n```\n\n## Running Tests\n\n```bash\ngo test -v ./...\n```\n\n---\n\n## Concepts Demonstrated\n\n- REST API design\n- Separation of concerns (handler vs repository)\n- Dependency injection\n- JSON serialization/deserialization\n- Unit testing with `httptest`\n\n---\n\n## Future Improvements\n\n- Add validation\n- Add authentication\n- Pagination for listings\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceloxhenrique%2Fgopportunities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarceloxhenrique%2Fgopportunities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarceloxhenrique%2Fgopportunities/lists"}