{"id":18852162,"url":"https://github.com/verma-kunal/go-rest-api","last_synced_at":"2026-02-04T03:30:17.402Z","repository":{"id":158150807,"uuid":"633344454","full_name":"verma-kunal/Go-REST-API","owner":"verma-kunal","description":"Simple REST API with Go and Gin Web Framework","archived":false,"fork":false,"pushed_at":"2023-05-14T13:53:22.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T20:15:04.840Z","etag":null,"topics":["gin-framework","golang","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verma-kunal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-27T09:48:20.000Z","updated_at":"2023-04-30T12:47:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"feab4741-40ea-402a-88a6-0c4d8741985f","html_url":"https://github.com/verma-kunal/Go-REST-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FGo-REST-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FGo-REST-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FGo-REST-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verma-kunal%2FGo-REST-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verma-kunal","download_url":"https://codeload.github.com/verma-kunal/Go-REST-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239789779,"owners_count":19697433,"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","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-framework","golang","rest-api"],"created_at":"2024-11-08T03:38:20.784Z","updated_at":"2026-02-04T03:30:17.355Z","avatar_url":"https://github.com/verma-kunal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go REST API with Gin \n\n## Introduction \nThis project is a simple **Go-based RESTful API** built with the [Gin Web Framework](https://gin-gonic.com/docs/quickstart/).\n\n## Features\n\n* RESTful API built with **Go** and **Gin**\n* Demonstrates all **CRUD operations**\n* Includes simple test suite for **unit testing**\n* **Dockerized application** for easy deployment and scalability\n\n## Prerequisites\n\nBefore getting started with this project, ensure you have the following dependencies installed:\n\n- [Go (version 1.16+)](https://go.dev/doc/install)\n- [Docker](https://www.docker.com/)\n\n## Getting Started\n### Setup the Project\n\nTo get started with this project, follow these steps:\n\n1. **Clone the repository:**\n    ```\n    git clone https://gitlab.com/devops-projects6943118/ci-cd/go-rest-api.git\n    ```\n\n2. **Change into the project directory:**\n    ```\n    cd go-rest-api\n    ```\n\n3. **Install the dependencies:**\n    ```\n    go mod download\n    ```\n4. **Run the application:**\n\n    - **Option 1: Run locally**\n        ```\n        go run main.go\n        ```\n    - **Option 2: Run with Docker**\n\n        1. Build the image locally:\n\n            ```\n            docker build -t go-app .\n            ```\n        2. Run the docker container\n\n            ```\n            docker run -dp 3000:3000 go-app\n            ```\n\n- You can now access the app at: http://localhost:3000/albums\n\n    ![](./images/curl.png)\n- To add am item to the list:\n\n    ```\n    curl http://localhost:3000/albums \\\n    --include \\\n    --header \"Content-Type: application/json\" \\\n    --request \"POST\" \\\n    --data '{\"id\": \"5\",\"title\": \"The Modern Sound of Betty Carter\",\"artist\": \"Betty Carter\",\"price\": 49.99}'\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverma-kunal%2Fgo-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverma-kunal%2Fgo-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverma-kunal%2Fgo-rest-api/lists"}