Giter VIP home page Giter VIP logo

ballcat-codegen's Introduction

BallCat-Codegen

执行启动脚本后,运行启动类

com/hccake/ballcat/codegen/GeneratorApplication.java

SQL 脚本的执行

从 v1.1.0 版本开始,sql 表结构以及部分基本数据交由 flyway 管理。

用户只需修改 ballcat-codegen-backend/src/main/resources/application-dev.yml 中的数据源配置,项目启动后即可自动生成数据库和表结构。

注意:自动生成数据库依赖 jdbc 的连接参数:createDatabaseIfNotExist=true 建议使用一个全新的数据库,如果使用的数据库中已经存在其他表,则需要添加配置 spring.flyway.baseline-version=0 再进行启动

模板管理

模板组的 sql 不在 flyway 的管理之下,用户自己按需构建模板组。 欢迎大家 pr 来共享自己创建的模板组

目前在根目录下的 template 文件夹下,提供了一些默认模板的 SQL 文件,用户按需选择对应的 SQL 进行初始化:

Ballcat Admin 单体项目骨架 (ballcat-admin-boot)

一键生成基于 Ballcat Admin 的单体后台管理应用

Ballcat 业务增删改查模板 (ballcat-bussines-crud)

快速生成基于 ballcat framework 的增删改查的基础代码,包含前后端

如何在不启动前端项目的情况下使用

必须先在父工程 ballcat-codegen 处执行 mvn clean package 打包命令

此命令会将前端进行 build,并将打包好的代码 copy 入后端项目的 resource 资源下。

第一次打包时会下载 node 以及前端项目依赖,耗时较久,可以先 cd 进 ballcat-codegen-frontend 前端项目处自行执行 npm install,切换使用淘宝镜像源以加快依赖下载速度。

ballcat-codegen's People

Contributors

hccake avatar mobaijun avatar elliotliu avatar lingting avatar freeit0525 avatar

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.