{"id":28361476,"url":"https://github.com/sedokina/teniry.crudgenerator","last_synced_at":"2026-04-30T19:32:21.807Z","repository":{"id":288425098,"uuid":"851736915","full_name":"Sedokina/Teniry.CrudGenerator","owner":"Sedokina","description":"Instantly generate CRUD for a .NET application 🚀","archived":false,"fork":false,"pushed_at":"2025-05-18T12:43:38.000Z","size":620,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T02:40:29.654Z","etag":null,"topics":["api-generator","cqrs","crud","crud-generator","dotnet","prototyping"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Sedokina.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,"zenodo":null}},"created_at":"2024-09-03T16:14:25.000Z","updated_at":"2025-05-18T12:40:51.000Z","dependencies_parsed_at":"2025-04-18T03:00:53.018Z","dependency_job_id":null,"html_url":"https://github.com/Sedokina/Teniry.CrudGenerator","commit_stats":null,"previous_names":["sedokina/teniry.crudgenerator"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Sedokina/Teniry.CrudGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sedokina%2FTeniry.CrudGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sedokina%2FTeniry.CrudGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sedokina%2FTeniry.CrudGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sedokina%2FTeniry.CrudGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sedokina","download_url":"https://codeload.github.com/Sedokina/Teniry.CrudGenerator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sedokina%2FTeniry.CrudGenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"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":["api-generator","cqrs","crud","crud-generator","dotnet","prototyping"],"created_at":"2025-05-28T13:39:57.068Z","updated_at":"2026-04-30T19:32:21.801Z","avatar_url":"https://github.com/Sedokina.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eTeniry.CrudGenerator\u003c/h1\u003e\nInstantly generate CRUD for an application\n\n[Report Bug][github-issues-url] · [Request Feature][github-issues-url]\n\n[github-issues-url]:https://github.com/Sedokina/Teniry.CrudGenerator/issues\n\u003c/div\u003e\n\n# ✨ Features:\n\n- Automatically generate CRUD operations for your domain models\n- Generate only the endpoints and handlers you require\n- Tailor the generated code to your specific needs with fully customizable configuration\n- Use PostgreSQL or MongoDB as your database with Entity Framework Core\n- Use minimal APIs for lightweight and efficient endpoint generation\n- Provides clear and readable autogenerated code, making it easy to extend and debug\n- Based on CQRS pattern (see [Teniry.CQRS](https://github.com/Sedokina/Teniry.CQRS))\n- Ideal for both rapid prototyping and large-scale projects with numerous entities.\n\n# 🔭 Overview\n\n* [Installation](#-installation)\n* [Quick start](#-quick-start)\n* [Examples](#examples)\n* [FAQ](#faq)\n    * [Who is this library for and would it be a good fit for my project?](#who-is-this-library-for-and-would-it-be-a-good-fit-for-my-project)\n    * [What is the difference between this library and other libraries that generate CRUD?](#what-is-the-difference-between-this-library-and-other-libraries-that-generate-crud)\n    * [Is it production ready?](#is-it-production-ready)\n* Docs\n    * [Generator Configuration](docs/entity-generator-configuration.md)\n    * [DbContext](docs/db-context.md)\n        * [MongoDb limitations](docs/mongo-limitations.md)\n\n# 📦 Installation\n\nYou can install the package via NuGet:\n\n```\nInstall-Package Teniry.CrudGenerator\n```\n\n# 🔨 Quick start\n\n* Create domain model\n* Create DBContext\n* Create basic generator configuration\n* Map autogenerated endpoints\n* 🚀 Done! You have working CRUD API!\n\n## Create domain model\n\n```csharp\npublic class Todo {\n    public Guid Id { get; set; }\n    public string Description { get; set; }\n    public bool IsDone { get; set; }\n}\n```\n\n## Create DBContext\n\n```csharp\nusing Microsoft.EntityFrameworkCore;\nusing Teniry.CrudGenerator.Abstractions.DbContext;\n\n[UseDbContext(DbContextDbProvider.Mongo)]\npublic class TodoDb : DbContext {\n    public TodoDb(DbContextOptions\u003cTodoDb\u003e options) : base(options) { }\n\n    public DbSet\u003cTodo\u003e Todos { get; set; }\n}\n```\n\nsee [DbContext](docs/db-context.md) for more information\n\n## Create basic generator configuration\n\n```csharp\nusing Teniry.CrudGenerator.Abstractions.Configuration;\n\npublic class TodoConfiguration : EntityGeneratorConfiguration\u003cTodo\u003e { }\n```\n\nsee [Generator Configuration](docs/entity-generator-configuration.md) for more information on customization\n\n## Map autogenerated endpoints\n\nAdd the following code to your `Program.cs` file, to register all necessary services for library to work\n\n```csharp\nusing AutogeneratedEndpoints;\n\n// your configuration\n// ...\n\n// This required because generated code uses CQRS pattern library\nbuilder.Services.AddCqrs();\n\n// This required to provide generated endpoints to the application\napp.MapGeneratedEndpoints();\n\n// your other app.Map() calls\n// ...\n```\n\n\u003e [!NOTE]\n\u003e `using AutogeneratedEndpoints;` namespace does not exist if the application is not built yet. It is generated by\n\u003e the library\n\n# FAQ\n\n## Who is this library for and would it be a good fit for my project?\n\nThis library is for developers who want to quickly generate CRUD for their application.\n\nIt would fit you if:\n\n* You need to create a simple CRUD for a small project\n* You want to create a prototype quickly\n* You have a large project that includes lots of entities that requires CRUD operations and don't include much business\n  logic\n* You want to focus on the business logic, don't want to write a lot of boilerplate code for an application, and stay\n  flexible in the same time\n\n## What is the difference between this library and other libraries that generate CRUD?\n\nThis library is based on the CQRS pattern and generates code that is easy to understand and maintain.\nIt generates only the necessary endpoints and handlers, which makes the code more readable and maintainable.\nIt also provides a way to customize the configuration to fit your needs.\n\n## Is it production ready?\n\nYes! Teniry.CodeGenerator is production ready. But it would be fair to notice that it is quite new library and it may\nlack some features that you might need.\n\n# Examples\n\nCheck out the [Mongo Todo Web App Example](samples/Teniry.CrudGenerator.Mongo.TodoSampleApi)\nand [PostgreSql Todo Web App Example](samples/Teniry.CrudGenerator.PostgreSql.TodoSampleApi)\nexamples on using Teniry.CrudGenerator library\n\n# Contributing\n\nFeel free to share your ideas through Pull Requests or GitHub Issues. Any contribution or feedback is appreciated!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedokina%2Fteniry.crudgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsedokina%2Fteniry.crudgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedokina%2Fteniry.crudgenerator/lists"}