{"id":42583808,"url":"https://github.com/aliforever/gomondel","last_synced_at":"2026-01-28T22:38:44.929Z","repository":{"id":54853358,"uuid":"208091523","full_name":"aliforever/gomondel","owner":"aliforever","description":"Golang MongoDB Model Generator with CRUD","archived":false,"fork":false,"pushed_at":"2021-04-09T12:26:47.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T23:14:04.966Z","etag":null,"topics":["crud","database","generator","go","golang","model","mongo","mongodb"],"latest_commit_sha":null,"homepage":null,"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/aliforever.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":"2019-09-12T16:07:20.000Z","updated_at":"2023-04-05T16:27:30.000Z","dependencies_parsed_at":"2022-08-14T04:50:24.682Z","dependency_job_id":null,"html_url":"https://github.com/aliforever/gomondel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aliforever/gomondel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliforever%2Fgomondel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliforever%2Fgomondel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliforever%2Fgomondel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliforever%2Fgomondel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliforever","download_url":"https://codeload.github.com/aliforever/gomondel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliforever%2Fgomondel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28853738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","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":["crud","database","generator","go","golang","model","mongo","mongodb"],"created_at":"2026-01-28T22:38:44.857Z","updated_at":"2026-01-28T22:38:44.912Z","avatar_url":"https://github.com/aliforever.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomondel\nGolang MongoDB Model Generator with CRUD\n\n[![gomondel](http://i3.ytimg.com/vi/I1ncw9C696E/maxresdefault.jpg)](https://www.youtube.com/watch?v=I1ncw9C696E\u0026)\nwatch on youtube\n\n## Description\n\nCreate ready-to-go models when working with the [Official Go Driver for MongoDB](https://github.com/mongodb/mongo-go-driver) including CRUD Operations (Create, Read, Update, Delete).\n\n\n\n## Installation \n```go get -u github.com/aliforever/gomondel```\n\n\n\n## Usage\n###### Note: Run `go install` after `go get` to install gomondel in bin folder located at %GOPATH%/bin (make sure bin folder is added to path variable).\n\n### Initialize New Database for Project\nTo add database connection to your project: \n\n1) cd into your project directory, forexample: `cd %GOPATH%/src/myproject/`, and then run:\n\n    `gomondel --init=your_database_name_here`\n\n    (This will create a models folder with a db.go file)\n\n2) call `models.InitMongoDB()` in your main file to initialize the database.\n\n### Create New Model \nTo create a new model based on your MongoDB collections, run:\n\n`gomondel --model=ModelName`\n    \n(This will create modelname.go file in models folder)\n\n\n## Note:\ngomondel uses [Inflect Package](github.com/gobuffalo/flect) to pluralize model names, so forexample if your collection name is `users`, you should use `User` as model name.\nThis is to comply to golang naming conventions, your model struct type will be named User.\n\n## Contribution\nYou're free to create issues and pull requests to help complete gomondel!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliforever%2Fgomondel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliforever%2Fgomondel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliforever%2Fgomondel/lists"}