Git Product home page Git Product logo

fondue's Introduction

Fondue

Fondue is a generator-based sub framework for Spring Boot and MyBatis.

Fondue has 3 features;

  1. Generator for Model resources (using MyBatisGenerator)
  • Model class (Entity)
  • (Model)Example.java
  • (Model)Mapper.java
  • (Model)Mapper.xml
  1. Generator for CRUD resources
  • CrudController.java
  • Form.java (with Bean Validation)
  • CrudService.java
  • CrudServiceImpl.java
  • (Model)Dao.java (Optional)
  • list.html
  • detail.html
  • edit.html
  1. Sub framework for Spring Boot
  • Pagination (yet another one)
  • Conversion between Form and Model
  • Display information message by type
  • Minimum settings for running boot app

For more information, see examples and wiki pages.

Installation

Fondue does not support installation so far.
Download source codes from the release page and import into your IDE (with gradle eclipse command).

Get Started

It requires gradle version 4.10 or higher.
If not installed gradle, use ./gradlew instead.

To run the app in examples

To run fondue-app1;

  1. Run gradle example:fondue-app1:dbMigrate to prepare a database contains 2 tables.
  2. Run gradle example:fondue-app1:bootRun to run fondue-app1 at fondue-root directory.

To create a new app

  1. Run ./add <app-name> at fondue-root directory.
  2. Run gradle <app-name>:initApp at your project.
  3. Run gradle <app-name>:dbMigrate at your project.
  4. Run gradle <app-name>:genAll (genModel and genCrud) at your project.
  5. Run gradle <app-name>:bootRun to run your app.
  6. Configure MyBatisGeneratorConfig.xml and fondue-gen.yml
  7. Repeat from #4

To specify rootPkg when initializing app ('initApp'), use 'fondue.rootPkg' as env or system property.
See the following snippet.

$ env fondue.rootPkg="net.argius.webapp.f1" ./gradlew test1:initApp
# or
$ ./gradlew test1:initApp -Dfondue.rootPkg="net.argius.webapp.f1"

Command Line Examples

# pwd=fondue-root
$ ./add test1
$ ./gradlew test1:initApp
$ ./gradlew test1:dbMigrate
$ ./gradlew test1:genAll
$ ./gradlew test1:bootApp
# help command

$ ./gradlew examples:fondue-app1:showHelp
# or
$ ./gradlew -q tasks

License

Apache 2.0 License.

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.