{"id":25534382,"url":"https://github.com/oglinuk/restful-go","last_synced_at":"2025-06-23T16:10:38.427Z","repository":{"id":44585255,"uuid":"416061369","full_name":"oglinuk/restful-go","owner":"oglinuk","description":"An example implementation of an enterprise-level REST interface in Golang using primarily the standard library, Docker, and Docker Compose.","archived":false,"fork":false,"pushed_at":"2022-02-06T21:33:04.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T17:58:22.364Z","etag":null,"topics":["go","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oglinuk.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}},"created_at":"2021-10-11T19:34:20.000Z","updated_at":"2022-01-22T22:01:45.000Z","dependencies_parsed_at":"2022-09-16T09:11:53.965Z","dependency_job_id":null,"html_url":"https://github.com/oglinuk/restful-go","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/oglinuk/restful-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oglinuk%2Frestful-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oglinuk%2Frestful-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oglinuk%2Frestful-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oglinuk%2Frestful-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oglinuk","download_url":"https://codeload.github.com/oglinuk/restful-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oglinuk%2Frestful-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261510008,"owners_count":23169686,"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":["go","golang","rest-api"],"created_at":"2025-02-20T03:19:16.701Z","updated_at":"2025-06-23T16:10:38.385Z","avatar_url":"https://github.com/oglinuk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST API in Golang\n\nThis is an example REST API implementation using primarily the standard\nlibrary, Docker, and Docker Compose. The exceptions are as follows.\n\n```\ngithub.com/go-chi/chi/v5 v5.0.7 (for the router)\ngithub.com/go-chi/cors v1.2.0 (for CORS)\ngithub.com/mattn/go-sqlite3 v1.14.8 (for the database)\ngithub.com/stretchr/testify v1.7.0 (for testing)\ngopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b (for configuration)\n```\n\n## Getting Started\n\n`./init app`\n\n`./init clean` to remove `cfg.yaml`, `library.db` and binaries\n\n### With `docker`\n\n`./init dapi \u0026\u0026 ./init ui`\n\n`./init dclean` to stop/rm the docker container\n\n### With `docker-compose`\n\n`docker-compose up --build` || `./init dcompose`\n\nOnce both are running go to [`localhost:9042`](http://localhost:9042). If\nyou want to access the page from other devices on the network, goto\n[`localhost:9001`](http://localhost:9001) and replace `localhost` with\nthe `ip` given as the response.\n\n## TODO\n\n* [X] Implement simple CRUD operations\n\t* [X] Insert\n\t* [X] SelectAll\n\t* [X] Select\n\t* [X] Update\n\t* [X] Delete\n* [X] [Code Review](docs/code-reviews/1642914462)\n* [ ] Implement API tokens using JWT\n* [ ] Implement a database abstraction layer\n* [ ] Add CI/CD pipeline\n* [ ] Add `ARCHITECTURE.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foglinuk%2Frestful-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foglinuk%2Frestful-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foglinuk%2Frestful-go/lists"}