[Open Source] A Java-Based Code Generator Driven by Data Models: Data + Templates = Content

Open SourceProcess Management
2026-06-28 05:03 1 次浏览 • 0 次下载 0KB
[Open Source] A Java-Based Code Generator Driven by Data Models: Data + Templates = Content

1. Project Overview

MoliCode

Image

MoliCode is a code generator developed in Java. In addition to generating Java code, it can also generate code in other languages. It is a standalone tool that stores code templates in a Git repository and uses them to generate target code. Its main difference from other code generators is that it does not focus on the templates themselves. In other words, it does not concern itself with what kind of code is generated. Instead, it serves as a foundational tool that makes it easy for everyone to create, share, and reuse code templates.

MoliCode is a code generator for java and other language. It's a standalone tool to generate code and store code template in git repository . So I want to make a good tool for everybody to share their code template and generate code easier. that's it.

Code generation can be performed directly from database table models. Configure everything through the UI and generate code with a single click. It is very convenient.

Image

2. Open Source License

Licensed under Apache-2.0

3. Screenshots

Usage Examples

Project List Example

Image

Template Repository Address Configuration for a Project

Configure the template Git URL and pull the Git templates for local use;

If a Git repository contains multiple template collections, configure the relative template path (the name of the subfolder under the Git repository root directory);

Image

Code Generation

Once the project configuration is complete, you can start generating code. Code Generation -> Refresh Templates

Image

Code Generation -> Generate Code from Database

Image

Code Generation -> Code Preview

Image

4. Feature Overview

Simplicity First

Driven by data models: Data + Templates = Content

Easy to Extend

In addition to the built-in tableModel, JSON, and CSV data formats, custom data model parsers are also supported;

Cloud Hosting

Code templates can also be hosted on GitHub for global sharing (recommended). Alternatively, they can be opened from a local file directory.

5. Tech Stack

Source Code and Development Environment Setup

For those who want to read the source code or perform secondary development, here is a brief introduction to the project.

Tech Stack

  • Backend: maven + springboot + springmvc + mybatis + druid;

  • Frontend: iviewAdmin + vue + webpack;

  • Languages: Java + Groovy hybrid compilation;

Special Notes on the Development Environment

It is recommended to open the project using IDEA;

Since IDEA and other IDEs generally cannot recognize Groovy source paths, you need to mark the Groovy folders in multiple submodules as source directories. The directories involved include:

# The following directories need to be configured
molicode-common/src/main/groovy
molicode-service/src/main/groovy
More content, please refer to README.md document
#1
资源直链https://gitee.com/davidplanck/molicode
去下载
星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare