Code Monkey home page Code Monkey logo

helio-generator's Introduction

helio-generator

项目说明

基于 renren-generator 改造适配的代码生成器,可一键生成单体or微服务版的前、后端代码,减少无谓的重复劳动

更新记录

它能做什么?

  1. 生成后端 Java 代码
    1. 后台管理 Controller 层 REST 接口、分页列表查询DTO(及对应 swagger 注解)、新增/编辑DTO(及对应 swagger、validation 注解)、菜单 SQL
    2. CRUD 需要的 Entity 、Mapper、Service(及对应 Mybatis-Plus 条件构造) 三层结构代码
    3. 返回体 BO
    4. 单元测试
    5. 【微服务版专有】 Facade 接口及对应的 FacadeImpl
  2. 生成前端 Vue3 代码(皆为 TypeScript)
    1. 自动指向后台管理 REST API
    2. 新增/编辑请求体、通用响应体
    3. 分页列表页、查看详情表单、新增/编辑表单等

如何使用

  1. 从 GitHub 或 Gitee 克隆项目源码,到自己的电脑上
  2. 找到resources/application.yml,修改里面的数据库数据库类型、连接地址、账号、密码
  3. 找到resources/generator.properties,修改里面的包名、模块名
  4. 找到src/main/java/io/renren/GeneratorApplication.java,运行项目
  5. 浏览器访问 http://127.0.0.1:6688 ,就能看到代码生成器页面了

License

GPL-3.0

演示效果图

helio-generator's People

Contributors

404name avatar uncarbon97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

helio-generator's Issues

自动生成的前端报错:[vite] Internal server error: EISDIR: illegal operation on a directory, read

暂时遇到的问题:

  1. 前端页面比如我生成了Test/index 访问首页对应的地方会显示[vite] Internal server error: EISDIR: illegal operation on a directory, read
  • 但我把Test/index的内容改成vben/about/index又没问题0.0,我就不清楚是怎么回事了
  1. 后端生成的代码,测试代码有一个全局生成的XxxService xxxService,测试函数内应该调用小写的xxxService,但我生成的情况是测试函数内是大写的,需要手动改成对象

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.