{"id":21135643,"url":"https://github.com/aalug/cv-backend-go","last_synced_at":"2026-04-28T21:35:15.968Z","repository":{"id":210134740,"uuid":"703192026","full_name":"aalug/cv-backend-go","owner":"aalug","description":"CV REST API built with Go and Gin as a backend for full stack CV app.","archived":false,"fork":false,"pushed_at":"2023-12-11T15:36:15.000Z","size":121,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T15:54:01.758Z","etag":null,"topics":["api","backend","docker","gin","go","golang","postgresql","rest-api"],"latest_commit_sha":null,"homepage":"http://adamgulczynski.pl/","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/aalug.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}},"created_at":"2023-10-10T19:11:30.000Z","updated_at":"2023-12-11T12:35:37.000Z","dependencies_parsed_at":"2023-12-01T01:31:49.823Z","dependency_job_id":"a5d6d33f-7b3c-4fb0-8bb9-88d0d76b1b92","html_url":"https://github.com/aalug/cv-backend-go","commit_stats":null,"previous_names":["aalug/cv-backend-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aalug/cv-backend-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fcv-backend-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fcv-backend-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fcv-backend-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fcv-backend-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aalug","download_url":"https://codeload.github.com/aalug/cv-backend-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalug%2Fcv-backend-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","backend","docker","gin","go","golang","postgresql","rest-api"],"created_at":"2024-11-20T06:56:55.862Z","updated_at":"2026-04-28T21:35:15.950Z","avatar_url":"https://github.com/aalug.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go CV REST API\n\n\nThis repository houses the backend service for a full-stack CV application, designed to serve as a personal website. Developed using Go 1.21, this **REST API** incorporates various technologies to deliver a robust and scalable solution.\nThe frontend app can be found at [cv-frontend-vuejs](https://github.com/aalug/cv-frontend-vuejs)\n\n## App built with Go 1.21\n\n### The app uses:\n- Postgres\n- Docker\n- [Gin](https://github.com/gin-gonic/gin)\n- [golang-migrate](https://github.com/golang-migrate/migrate)\n- [sqlc](https://github.com/kyleconroy/sqlc)\n- [testify](https://github.com/stretchr/testify)\n- [Viper](https://github.com/spf13/viper)\n- [gin cors](https://github.com/gin-contrib/cors)\n- [gin-swagger](https://github.com/swaggo/gin-swagger)\n\u003chr\u003e\n\n## Getting started\n1. Clone the repository\n2. Go to the project's root directory\n3. Rename `app.env.example` to `app.env` and replace the values\n4. In the `Dockerfile` change `PRODUCTION` to `false`\n5. Run in your terminal:\n`docker-compose up` to run the containers\n6. Now everything should be ready and server running on `SERVER_ADDRESS` specified in `app.env`\n\u003chr\u003e\n\n## Testing\n1. Run the containers (`docker-compose up`)\n2. Run in your terminal:\n    - `make test` to run all tests\n\n   or\n    - `make test_coverage p={PATH}` - to get the coverage in the HTML format - where `{PATH}` is the path to the target directory for which you want to generate test coverage. The `{PATH}` should be replaced with the actual path you want to use. For example `./internal/api`\n\n   or\n    - use standard `go test` commands (e.g. `go test -v ./internal/api`)\n\u003chr\u003e\n\n## API Endpoint\nAll endpoints are available to test at http://localhost:8080/swagger/index.html after running the containers.\n\n\n### GET `/api/v1/cv-profiles/{id}`\n\nThis endpoint is used to get the details of a CV profile with a provided ID.\n\n#### Parameters\n\n- `id` (integer, required): The ID of the CV profile. This parameter is included in the path of the request.\n\n#### Responses\n\n- `200 OK`: The request was successful and the response body contains the CV profile details.\n- `400 Invalid ID`: The provided ID is invalid.\n- `404 CV profile with given ID does not exist`: There is no CV profile with the provided ID. \n- `500 Any other server-side error`: There was a server-side error while processing the request.\n\n#### Produces\n\nThe endpoint produces responses in the `application/json` format.\n\n### GET `/api/v1/projects/skill/{id}/{skill}`\n\nThis endpoint is used to list projects for a CV profile with a provided ID and skill.\n\n#### Parameters\n\n- `id` (integer, required): The ID of the CV profile. This parameter is included in the path of the request.\n- `skill` (string, required): The name of the skill. This parameter is included in the path of the request.\n- `page` (integer, required): The page number. This parameter is included in the query of the request.\n- `page_size` (integer, required): The page size. This parameter is included in the query of the request.\n\n#### Responses\n\n- `200 OK`: The request was successful and the response body contains a list of projects.\n- `400 Invalid ID, skill name, page or page size`: The provided ID, skill name, page or page size is invalid. \n- `404 CV profile with given ID or skill with given name does not exist`: There is no CV profile with the provided ID or no skill with the provided name.\n- `500 Any other server-side error`: There was a server-side error while processing the request.\n\n#### Produces\n\nThe endpoint produces responses in the `application/json` format.\n\n### GET `/api/v1/projects/{id}`\n\nThis endpoint is used to list projects for a CV profile with a provided ID.\n\n#### Parameters\n\n- `id` (integer, required): The ID of the CV profile. This parameter is included in the path of the request.\n- `page` (integer, required): The page number. This parameter is included in the query of the request.\n- `page_size` (integer, required): The page size. This parameter is included in the query of the request.\n\n#### Responses\n\n- `200 OK`: The request was successful and the response body contains a list of projects. \n- `400 Invalid ID, page or page size`: The provided ID, page or page size is invalid.\n- `404 CV profile with given ID does not exist`: There is no CV profile with the provided ID.\n- `500 Any other server-side error`: There was a server-side error while processing the request.\n\n#### Produces\n\nThe endpoint produces responses in the `application/json` format.\n\n### GET `/api/v1/skills/{id}`\n\nThis endpoint is used to list skills for a CV profile with a provided ID.\n\n#### Parameters\n\n- `id` (integer, required): The ID of the CV profile. This parameter is included in the path of the request.\n\n#### Responses\n\n- `200 OK`: The request was successful and the response body contains a list of skills. \n- `400 Invalid ID`: The provided ID is invalid.\n- `404 CV profile with given ID does not exist`: There is no CV profile with the provided ID.\n- `500 Any other server-side error`: There was a server-side error while processing the request.\n\n#### Produces\n\nThe endpoint produces responses in the `application/json` format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalug%2Fcv-backend-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faalug%2Fcv-backend-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalug%2Fcv-backend-go/lists"}