{"id":14994505,"url":"https://github.com/dedidot/gorm-gin","last_synced_at":"2025-07-23T23:02:38.821Z","repository":{"id":144204315,"uuid":"123108650","full_name":"dedidot/gorm-gin","owner":"dedidot","description":"Simple api with gin and gorm","archived":false,"fork":false,"pushed_at":"2018-03-10T06:55:06.000Z","size":8179,"stargazers_count":108,"open_issues_count":0,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T13:12:12.094Z","etag":null,"topics":["api","gin-gonic","golang","gorm","orm","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/dedidot.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":"2018-02-27T09:53:18.000Z","updated_at":"2025-03-28T13:02:26.000Z","dependencies_parsed_at":"2023-06-18T15:54:15.729Z","dependency_job_id":null,"html_url":"https://github.com/dedidot/gorm-gin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dedidot/gorm-gin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedidot%2Fgorm-gin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedidot%2Fgorm-gin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedidot%2Fgorm-gin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedidot%2Fgorm-gin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dedidot","download_url":"https://codeload.github.com/dedidot/gorm-gin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedidot%2Fgorm-gin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266764097,"owners_count":23980515,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api","gin-gonic","golang","gorm","orm","rest-api"],"created_at":"2024-09-24T16:03:39.244Z","updated_at":"2025-07-23T23:02:38.815Z","avatar_url":"https://github.com/dedidot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Api go simple\nIt is a just simple RESTful API with Go using:\n1. **Gin Framework**\n2. **Gorm** \n\n## Installation \u0026 Run\n```bash\n# Download this project\n$ go get github.com/dedidot/gorm-gin\n\n# Download Gin Framework\n$ go get github.com/gin-gonic/gin\n\n# Download GORM\n$ go get github.com/jinzhu/gorm\n```\n\nSetting DB in main.go\n```go\nConfig.DB, err = gorm.Open(\"mysql\", \"DBUSERNAME:DBPASSWORD@tcp(127.0.0.1:3306)/DBNAME?charset=utf8\u0026parseTime=True\u0026loc=Local\")\n```\n\n## Structure\n```\n├── Models\n│   ├── Book.go // Book models\n|\t├── Scheme.go // Book struct and tabel\n├── Config\n│   └── Database.go // Global DB\n├── Controllers\n│   └── Book.go // Book Controller\n├── ApiHelpers\n│   └── Response.go // response function\n├── Routers\n|   └── Routers.go // Routers\n└── main.go\n```\n\n## API\n\n#### /book\n* `GET` : Get all book\n* `POST` : Create a new book\n\n#### /book/:id\n* `GET` : Get a book\n* `PUT` : Update a book\n* `DELETE` : Delete a book\n\n#Post Params\n```\n{\n\t\"author\": \"Op Super John Doe Bilw\",\n\t\"name\": \"Implementation Golang\",\n\t\"category\": \"Knowledge\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdedidot%2Fgorm-gin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdedidot%2Fgorm-gin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdedidot%2Fgorm-gin/lists"}