Golang universal code generator Fairchild is developing version 2.4.0 Electronic Music Fairy, and released the second development exploration video

Golang universal code generator Fairchild is developing version 2.4.0 Electronic Music Fairy, and released the second development exploration video

Golang universal code generator Fairchild is developing version 2.4.0 Electronic Music Fairy, and has released the second development exploration video. The new version can be released in a few weeks. For video please see:

https://www.bilibili.com/video/BV13u4y1M7KS/

https://www.bilibili.com/video/BV1WQ4y1g78E/
The Electronic Music Fairy version supports enumeration and dumb data modes. Supports three major parts to generate function groups. Supports date and datetime. Support users to modify their own passwords and information. The technical status is basically the same as the Red Lotus early adopter version of the Rust universal code generator Lotus. Welcome to learn and try it out.

Code generator project address:https://gitee.com/jerryshensjf/Fairchild
Binary release package download address: https://gitee.com/jerryshensjf/Fairchild/attach_files

Universal code generator for Go language: Fairchild

Introduction

Universal code generator for Go language: Fairchild

Baidu topic

#Universal Code Generator#

new version update

Go language universal code generator Fairchild has released Beta 7 version. Improved support for Oracle database and bug fixes. Builds can be generated by compiling from source.

Go language universal code generator Fairchild Beta 6 has released the latest introduction video and supports building code generators from source code. You only need to download the source code, and you can mvn install compile and build the Go language universal code generator Fairchild.

Go language universal code generator: Fairchild Beta5 version. Completely repaired the elastic login module, fixed the issue of registering, changing passwords, and using outdated encryption algorithms when administrators add new users. More testing.

Go language universal code generator: Fairchild Beta3 version. Fixed several bugs. Including login permission issues and language issues in the graphical report UI. More testing.

The GO language universal code generator Fairchild has released the Beta2 version, which supports Rust language compatibility, that is, you can use the SGS2 template of the Rust universal code generator Lotus to directly generate Go language code generation. Also supports Java language compatibility. That is, the template that supports the Java universal code generator can directly generate Go language code products.

Fairchild Beta version, this version fixes compilation errors caused by changes in the Excelize component API, and also has documentation updates and more checks.

Fairchild early adopter version twelve. Supports PDF format data export. There are enhancements and bug fixes based on the early adopter version 11. Smoothly supports template wizard code generation. Supports three major deformation function groups and four databases. All feature planning has been completed and the next version can enter the Beta stage.

Early adopter version eleven. Based on the early adopter version 10, there are enhancements and bug fixes, and it supports Chinese annotations for database tables and fields and SGS2 templates that are compatible with all Java universal code generators. It directly generates the Go language backend and Vue frontend, and automatically formats the Java language SGS2. Template to go language template. Supports three major deformation function groups, supports four databases, and supports Excel data export. Supports graphical reports and complex layouts, and supports flexible login modules.

Early adopter version ten is the first stable version. The functions are basically complete, all examples have passed inspection, and preliminary complete testing has been carried out.

Early adopter version nine has functional enhancements and bug fixes based on early adopter version eight.

Early adopter version 8 initially supports SimpleAuth flexible login interface.

Early Access Version 7 is a bug fix version.

The early adopter version 5 supports complex layout and graphical reporting functions on the front end and back end.

Early adopter version 4 supports independent front-ends based on Node.js for Vue and ElementUI.

Early Access Version 3 underwent extensive testing and bug fixes.

Early adopter version 2 adds support for Oracle database.

Architecture

Generic code generator based on Java: an architecture of light.

The generated code is based on the Go language and uses gin as the web framework. Currently supports four databases: MariaDB, MySQL, PostgreSQL and Oracle. Supports generating standalone Node.js-based front ends for Vue and ElementUI. Supports two data export formats: Excel and PDF.

Development and testing environment

  • jdk 17
  • Apache Tomcat 9
  • Node.js 14
  • golang 1.19
  • MariaDB 15.1
  • MySQL 8
  • PostgreSQL 14
  • Oracle 11

B station introduction video

Go language universal code generator Fairchild has released a Beta7 version video, please see:

https://www.bilibili.com/video/BV1uM4y1774F/

Go language universal code generator Fairchild Beta6 video, please see:

https://www.bilibili.com/video/BV1Jg4y1473X/

​Go language universal code generator Fairchild has released Beta5 version, released the latest introduction video, and completely repaired the elastic login module. Fixed the issue of using outdated encryption algorithms when registering, changing passwords, and administrators adding new users. More testing.

For video please see:

https://www.bilibili.com/video/BV1xg4y1E7FA/

​Beta3 version, please see:

https://www.bilibili.com/video/BV1g84y1n73B/

For a collection of two videos from the Beta version, please see:

https://www.bilibili.com/video/BV13D4y1G7L4/

Beta2 version:

https://www.bilibili.com/video/BV13M411A7nH/

Beta version:

https://www.bilibili.com/video/BV19j411T7wx/

Early adopter version twelve:

https://www.bilibili.com/video/BV14K411i7DM/

Early adopter version eleven:

https://www.bilibili.com/video/BV1ce411P7qU/

Early adopter version nine:

https://www.bilibili.com/video/BV1a5411R7Zt/

https://www.bilibili.com/video/BV1pR4y1w7aB/

Project pictures

Image description

next major version number

The next big version number is Fairchild 2.4.0 TechnoFairy, short name TF. Benchmark java universal code generator light 2.4.0 king of electronic music

Enter image description

Baidu topic

#Universal Code Generator#

Code generator screenshot

The code generator is under development and Beta7 has been released, which is a stable version.

Image description

Image description

Beta7 version download

This version fully supports Oracle database and supports integrated front-end code generation function. A complete elastic login module has been integrated.

Now, this project has download permission.

请去https://gitee.com/jerryshensjf/Fairchild/attach_files

Fairchild installation and operation

Fairchild is a code generator written in Java. To run Fairchild, you need to have Java 8 installed and Tomcat 9 or 8.5 application server installed. And deploy Fairchild's war package in Tomcat's webapps directory.

To run the code generation, you also need to install the Go language development environment. You need to use go mod to manage dependencies, and unzip the code generation in the first-level subdirectory of the src folder in the go language workspace. The corresponding database server also needs to run the database creation sql script generated by the code.

To run the front-end code generation, you need to install the node.js running environment and install the js dependency library.

Vue independent front-end screenshot

Enter image description

Enter image description

Enter image description

Enter image description

Screenshot of code generation

Image description

Image description

Source code compilation user guide

The universal code generator already supports compiling source code by itself. I have uploaded the missing jar package of the front-end code generator. Everyone is supported to compile the source code by themselves.

It should be noted that my development platform is now openjdk 17 on Fedora 37. Therefore, it is best to use openjdk17 when compiling source code. The compiled war package runs on apache tomcat 9.0.

A user with jdk8 reported that the code generator war package downloaded by default cannot run on his platform. Please report if you encounter similar problems. My email is:[email protected]

Attached is the download address of openjdk 17:

https://jdk.java.net/java-se-ri/17

Things to note when using front-end functions

Because the image file is relatively large, the front-end originally used the cnpm instll installation type. The npm run dev operation was changed. Instead, npm install --registry=https:// registry.npm.taobao.org installs the class library. After an error occurs, use cnpm install to install the class library. Use node --max-http-header-size=1000000 ./node_modules/.bin/webpack -dev-server --inline --progress --config build/webpack.dev.conf.js Running system.

You can also copy the node_modules directory from the installed front-end project of this series of code generators to run the front-end.

Solution to node-sass incompatibility

Method one:

npm uninstall node-sass
npm install sass-loader
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
 

Method two:

npm uninstall sass-loader node-sass //Uninstall
npm install [email protected] [email protected] --save-dev //Install corresponding version
 

Application scenarios of verb operator code generator

  1. Rapid prototyping: used in project or demonstration scenarios. Can generate a relational database backend, using MyBatis database backend and Vue and ElementUI frontend.
  2. Early stage of the project: If the project is compatible with the verb operator code generator, you can use the verb operator code generator to perform automated generation in the early stage of the project.

Notes for source code readers

The source code of the first complete version of the Infinite Code Generator, if you are interested, you can copy it:

https://gitee.com/jerryshensjf/InfinityGPGenerator_0_6_5

Related technical videos:

https://www.bilibili.com/video/BV1fX4y1u7Bn/

https://www.bilibili.com/video/BV1rv41187qY/

https://www.bilibili.com/video/BV1xv41187cA/

https://www.bilibili.com/video/BV1t64y1v7WA/

Guess you like

Origin www.oschina.net/news/271314