{"id":19143151,"url":"https://github.com/devenes/go-bookstore-api","last_synced_at":"2026-05-10T05:09:46.337Z","repository":{"id":57706795,"uuid":"502191792","full_name":"devenes/go-bookstore-api","owner":"devenes","description":"This is a simple API for a bookstore that basically only has a few endpoints and built with Golang.","archived":false,"fork":false,"pushed_at":"2023-03-07T00:29:29.000Z","size":161,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T19:25:50.847Z","etag":null,"topics":["docker","go","goland","golang","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devenes.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-06-10T22:02:17.000Z","updated_at":"2022-06-10T23:16:07.000Z","dependencies_parsed_at":"2024-06-21T08:35:53.895Z","dependency_job_id":"1c3a6ff7-6eb4-4b7f-a614-0f69dd3748b2","html_url":"https://github.com/devenes/go-bookstore-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devenes/go-bookstore-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devenes%2Fgo-bookstore-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devenes%2Fgo-bookstore-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devenes%2Fgo-bookstore-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devenes%2Fgo-bookstore-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devenes","download_url":"https://codeload.github.com/devenes/go-bookstore-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devenes%2Fgo-bookstore-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269787600,"owners_count":24475768,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["docker","go","goland","golang","sqlite"],"created_at":"2024-11-09T07:29:43.288Z","updated_at":"2026-05-10T05:09:46.292Z","avatar_url":"https://github.com/devenes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" id=\"top\"\u003e \n  \u003cimg src=\"./go.png\" alt=\"Go Bookstore Api\" /\u003e  \n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eBookstore API\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Build\" src=\"https://github.com/devenes/go-bookstore-api/actions/workflows/go_build.yml/badge.svg\"\u003e\n  \u003cimg alt=\"Tool\" src=\"https://badges.aleen42.com/src/docker.svg\"\u003e\n  \u003cimg alt=\"Tool\" src=\"https://badges.aleen42.com/src/golang.svg\"\u003e\n  \u003cimg alt=\"Tool\" src=\"https://badges.aleen42.com/src/github.svg\"\u003e\n  \u003cimg alt=\"Github top language\" src=\"https://img.shields.io/github/languages/top/devenes/go-bookstore-api?color=56BEB8\"\u003e\n  \u003cimg alt=\"Github language count\" src=\"https://img.shields.io/github/languages/count/devenes/go-bookstore-api?color=56BEB8\"\u003e\n  \u003cimg alt=\"Repository size\" src=\"https://img.shields.io/github/repo-size/devenes/go-bookstore-api?color=56BEB8\"\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/devenes/go-bookstore-api?color=56BEB8\"\u003e\n  \u003c!-- \u003cimg alt=\"Github issues\" src=\"https://img.shields.io/github/issues/devenes/go-bookstore-api?color=56BEB8\" /\u003e --\u003e\n  \u003c!-- \u003cimg alt=\"Github forks\" src=\"https://img.shields.io/github/forks/devenes/go-bookstore-api?color=56BEB8\" /\u003e --\u003e\n  \u003c!-- \u003cimg alt=\"Github stars\" src=\"https://img.shields.io/github/stars/devenes/go-bookstore-api?color=56BEB8\" /\u003e --\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e \n\t🚧  Go Bookstore Api 🚀 Under construction...  🚧\n\u003c/h4\u003e\n\u003chr\u003e \n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#dart-about\"\u003eAbout\u003c/a\u003e \u0026#xa0; | \u0026#xa0; \n  \u003ca href=\"#sparkles-features\"\u003eFeatures\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#rocket-technologies\"\u003eTechnologies\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#white_check_mark-requirements\"\u003eRequirements\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#checkered_flag-starting\"\u003eStarting\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#memo-license\"\u003eLicense\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"https://github.com/devenes\" target=\"_blank\"\u003eAuthor\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n## :dart: About ##\n\nThis is a simple API for a bookstore that basically only has a few endpoints and built with Golang.\n\n## :sparkles: Features ##\n\n:heavy_check_mark: List \\\n:heavy_check_mark: Update \\\n:heavy_check_mark: Delete\n\n## :rocket: Technologies ##\n\nThe following tools were used in this project:\n\n- [Go](https://golang.org/)\n- [Gin](https://gin-gonic.com/)\n- [Gorm](https://gorm.io/)\n- [SQLite](https://www.sqlite.org/)\n- [GitHub](https://github.com/)\n\n## :white_check_mark: Requirements ##\n\nBefore starting :checkered_flag: you need to have [Git](https://git-scm.com), [Go](https://golang.org), [Docker](https://www.docker.com/) and [GCC](https://gcc.gnu.org/) installed on your machine.\n\n## :checkered_flag: Starting ##\n\n```bash\n# Clone this project from GitHub\ngit clone https://github.com/devenes/go-bookstore-api\n\n# Access the project folder\ncd go-bookstore-api\n```\n\n- Start the locally:\n```bash\ngo run main.go\n```\n\n- ## 🐳 Start the server in a Docker container:\n```bash\ndocker build -t devenes/bookstore-api:1.0 ./ \u0026\u0026 docker run -p 8080:8080 -d devenes/bookstore-api:1.0 \u0026\u0026 explorer \"http://localhost:8080/books\"\n# The server will initialize in the \u003chttp://localhost:8080\u003e\n```\n\n- Add a new book:\n```bash\ncurl -X POST -H 'content-type: application/json' --data '{\"title\": \"Slim Jim\", \"author\": \"Jim\"}' http://localhost:8080/books\n```\n    \n- Get all books:    \n```bash \ncurl -X GET http://localhost:8080/books\n```\n\n- Get the book with id:        \n```bash\ncurl -X GET http://localhost:8080/books/1\n```\n\n- Update a book with id:\n```bash\ncurl -X PATCH -H 'content-type: application/json' --data '{\"title\": \"Slim Jim\", \"author\": \"James Miller\"}' http://localhost:8080/books/1\n```\n\n- Delete the book with id 1:\n```bash\ncurl -X DELETE http://localhost:8080/books/1\n```\n\n### Resources:\n- [Go](https://golang.org/)\n- [Rest API](https://blog.logrocket.com/how-to-build-a-rest-api-with-golang-using-gin-and-gorm/)\n\n## :memo: License ##\n\nThis project is under license from Apache 2.0. For more details, see the [LICENSE](LICENSE) file.\n\nMade with :heart: by \u003ca href=\"https://github.com/devenes\" target=\"_blank\"\u003edevenes\u003c/a\u003e\n\n\u0026#xa0;\n\n\u003ca href=\"#top\"\u003e⬆️ Back to top\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevenes%2Fgo-bookstore-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevenes%2Fgo-bookstore-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevenes%2Fgo-bookstore-api/lists"}