{"id":15451234,"url":"https://github.com/hylim-tech-lover/restful-services-go","last_synced_at":"2026-05-01T01:31:24.048Z","repository":{"id":137973086,"uuid":"578124180","full_name":"hylim-tech-lover/restful-services-go","owner":"hylim-tech-lover","description":"Dockerized RESTful services in Go","archived":false,"fork":false,"pushed_at":"2022-12-14T14:59:33.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:24:50.614Z","etag":null,"topics":["docker","dockerfile","go-fiber","golang","gorm-postgresql-driver"],"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/hylim-tech-lover.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":"2022-12-14T10:10:29.000Z","updated_at":"2022-12-14T14:56:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d2e6745-f5ed-4c52-9aa4-985c74da5056","html_url":"https://github.com/hylim-tech-lover/restful-services-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hylim-tech-lover/restful-services-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hylim-tech-lover%2Frestful-services-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hylim-tech-lover%2Frestful-services-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hylim-tech-lover%2Frestful-services-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hylim-tech-lover%2Frestful-services-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hylim-tech-lover","download_url":"https://codeload.github.com/hylim-tech-lover/restful-services-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hylim-tech-lover%2Frestful-services-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["docker","dockerfile","go-fiber","golang","gorm-postgresql-driver"],"created_at":"2024-10-01T21:22:02.416Z","updated_at":"2026-05-01T01:31:24.023Z","avatar_url":"https://github.com/hylim-tech-lover.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized RESTful services in Go\n\n## Environment Setup / Pre-requisite\n\n\u003e Please install the following for running OS environment before continue:\n\n1. [Go](https://go.dev/doc/install)\n2. [Docker](https://www.docker.com/products/docker-desktop/)\n3. [Postman](https://www.postman.com/downloads/)\n\n---\n\n## Quick Start\n\n1. Git clone current repository to your local environment and open with preferred IDE [eg: VS code].\n2. Rename [.env.example](./.env.example) to `.env` file .\n3. Make sure `no other application` running at port `3000` as it will be used by the application.\n4. Make sure docker is already running at local environment.\n5. Open terminal in `project root path` and run following command to verify docker are running:\n\n```bash\n# View installed docker version\ndocker version\n```\n\n6. If docker is not running, please run docker and repeat Step 5.\n7. At the terminal, run following command to start `containerized RESTful services` in Go with Postgres database via Docker.\n\n```bash\n# Create docker instance based on docker-compose.yml\ndocker compose up\n```\n\n8. Make sure terminal have the following prompt below continue:\n\n   ![Fiber cli prompt](./image/fiber-cli.png)\n\n9. Open Postman and start to send RESTful API with correct parameter as stated in API sesison below.\n\n---\n\n## API Endpoints Reference\n\n\u003e `GET` http://localhost:3000\n\nThis API will return the raw JSON format of stored object(s) in Postgres. Hence, it will be empty by default and objects will be displayed after running `POST` request for at least once and success.\n\nSample Response\n\n```json\n[\n  {\n    \"ID\": 1,\n    \"CreatedAt\": \"2022-12-14T14:42:59.162640885Z\",\n    \"UpdatedAt\": \"2022-12-14T14:42:59.162640885Z\",\n    \"DeletedAt\": null,\n    \"question\": \"Is this a sample?\",\n    \"answer\": \"Yes\"\n  },\n  {\n    \"ID\": 2,\n    \"CreatedAt\": \"2022-12-14T14:45:11.451989Z\",\n    \"UpdatedAt\": \"2022-12-14T14:45:11.451989Z\",\n    \"DeletedAt\": null,\n    \"question\": \"Is this a sample too?\",\n    \"answer\": \"Yea!\"\n  }\n]\n```\n\n---\n\n\u003e `POST` http://localhost:3000/fact\n\nUse `Postman` and create a new POST request.\n\nThen, choose `Body` , then `raw` and make sure JSON is selected. Paste in the following skeleton and fill in accordingly.\n\nBody\n\n| name     | required |\n| -------- | -------- |\n| question | `yes`    |\n| answer   | `yes`    |\n\nSample Body\n\n```JSON\n{\n  \"question\": \"Who learn Golang today?\",\n  \"answer\": \"Me!\",\n}\n```\n\nResponse\n\n```json\n{\n  \"ID\": 1,\n  \"CreatedAt\": \"2022-12-14T14:42:59.162640885Z\",\n  \"UpdatedAt\": \"2022-12-14T14:42:59.162640885Z\",\n  \"DeletedAt\": null,\n  \"question\": \"Who learn Golang today?\",\n  \"answer\": \"Me!\"\n}\n```\n\n---\n\n## Third-party Golang package/modules installed\n\n- Go-fiber\n- Gorm with Postgres driver\n- Air\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhylim-tech-lover%2Frestful-services-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhylim-tech-lover%2Frestful-services-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhylim-tech-lover%2Frestful-services-go/lists"}