https://github.com/shilohooo/arale-codegen
🛠️ A Code Generator for Reducing Duplication of Work in Development:)
https://github.com/shilohooo/arale-codegen
asp-net-core codegen codegenerator quasar vue3
Last synced: 4 months ago
JSON representation
🛠️ A Code Generator for Reducing Duplication of Work in Development:)
- Host: GitHub
- URL: https://github.com/shilohooo/arale-codegen
- Owner: shilohooo
- License: mit
- Created: 2025-02-04T09:19:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T14:24:51.000Z (4 months ago)
- Last Synced: 2025-02-11T15:29:50.239Z (4 months ago)
- Topics: asp-net-core, codegen, codegenerator, quasar, vue3
- Language: TypeScript
- Homepage: https://shiloh595.top/arale-codegen-ui/
- Size: 558 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arale CodeGen
![]()
> [!IMPORTANT]
> 🚧 The project is currently under active development and features are subject to change at any time.Arale CodeGen is a code generation tool that can read SQL DDL or JSON Object/Array to generate the specified code.
The goal of this project is to reduce duplication of work in CRUD, such as writing entity code based on the table
structure, or write the corresponding DTO code based on the structure of the JSON object.## 🚀 Features
- [Read the SQL DDL](https://shiloh595.top/arale-codegen-ui/#/sql-convert/sql-to-entity) / JSON to generate entity of ORM / persistence framework, such
as [Hibernate](https://hibernate.org/orm/), [Entity Framework Core](https://docs.microsoft.com/ef/),
[SqlSugar](https://www.donet5.com/home/doc), [MyBatisPlus](https://baomidou.com/)
- [Read the SQL DDL](https://shiloh595.top/arale-codegen-ui/#/sql-convert/sql-to-class) / JSON to generate class, record, struct
for [Java](https://openjdk.org/), [C#](https://learn.microsoft.com/en-us/dotnet/csharp/).
- Read the SQL DDL / [JSON](https://shiloh595.top/arale-codegen-ui/#/json-convert/json-to-ts) to generate type / interface for [TypeScript](https://www.typescriptlang.org/).
- Read the SQL DDL / JSON to generate object for [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript).
- JSON object field naming style conversion (camelCase, snake_case, PascalCase, kebab-case).> [!NOTE]
> Only the following databases are supported- [SQL Server](https://learn.microsoft.com/en-us/sql/?view=sql-server-ver16)
- [MySQL](https://www.mysql.com/)
- [PostgreSQL](https://www.postgresql.org/)
- [SQLite](https://www.sqlite.org/)## 🪄 Credits
The logo has been designed by [Free Logo Design](https://www.freelogodesign.org/).
## 💻 Stack
### Backend
| Name | Version | Documentation | Remark |
|------------------------|---------------|----------------------------------------------------------------------|---------------------|
| C# | 12 | | Language |
| SqlParser-cs | 0.6.2 | | SQL Parser |
| Scriban | 5.12.1 | | Template Engine |
| Pluralize.NET | 1.0.2 | | |
| ASP.NET Core (Web API) | .NET 8.0 | | Web Framework |
| Humanizr | 3.0.0-beta.54 | | Change naming style |
| xUnit.net | 2.5.3 | | Unit Tests |### Frontend
| Name | Version | Documentation | Remark |
|--------------------|---------|------------------------------------------------------|--------------------|
| NodeJS | 20.11.1 | | |
| PNPM | 8.5.13 | | Package Manager |
| TypeScript | 5.4 | | |
| Vue | 3.4.27 | | |
| Quasar | 2.16.0 | | UI Framework |
| JsonToTs | 2.1.0 | | JSON to TypeScript |
| UnpluginAutoImport | 0.18.2 | | |
| Monaco Editor | 0.52.2 | | Code Editor |
| SQL Formatter | 15.4.10 | | Code Format |
| debounce | 2.2.0 | | Delay function |### Deployment
| Name | Version | Documentation | Remark |
|--------|---------|------------------------------------|--------|
| Nginx | 1.26.0 | | |
| Docker | 27.1 | | |## 📖 References
- [C# & SQL Server Data Type Mapping](https://learn.microsoft.com/zh-cn/sql/language-extensions/how-to/c-sharp-to-sql-data-types?view=sql-server-ver16)
- [C# & MySQL Data Type Mapping](https://zontroy.com/mysql-to-csharp-type-mapping)
- [C# & SQLite Data Type Mapping](https://learn.microsoft.com/en-us/dotnet/standard/data/sqlite/types)
- [C# & PostgreSQL Data Type Mapping](https://zontroy.com/postgresql-to-csharp-type-mapping)
- [Java & SQL Server Data Type Mapping](https://learn.microsoft.com/en-us/sql/language-extensions/how-to/java-to-sql-data-types?view=sql-server-ver16)
- [Java & MySQL Data Type Mapping](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-type-conversions.html)
- [Java & PostgreSQL Data Type Mapping](https://zontroy.com/postgresql-to-java-type-mapping)
- [A polyglot web converter](https://github.com/ritz078/transform)## 💪 Contributors
| Shiloh |
|:-----------------------------------------------------------------------------------------------:|
| [](https://github.com/shilohooo) |## 🔖 License
Copyright © 2025-present Shiloh
[MIT](./LICENSE)