3 Star 15 Fork 2

ccmjga/mjga-scaffold

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README_EN.md 4.11 KB
一键复制 编辑 原始数据 按行查看 历史
CCmjga 提交于 6个月前 . fix README.md title

Make Java Great Again!

MIT License logo.png

🏆🎖️🥇🥈🥉🏅

Why is Mjga Unique?

Mjga is a newly designed, cloud-native-based modern Java Web scaffolding framework. It features:

  • Containerized applications
  • Plug-and-play components
  • Widely acclaimed unit testing
  • Custom metadata

🥝 Template Selection

option_cn.png

🍅 Component Configuration

stack_cn.png

🍹 Custom Metadata

meta_cn.png

Containerization and Cloud-Native

  1. Manage the entire lifecycle and configuration of the application via docker-compose.yml.
  2. Customize all configurations through the .env file.
  3. Deliver the entire application and its ecosystem components via docker-compose.yml.

Out-of-the-Box

  1. Integrates common basic business functionalities such as authentication, permission management, and cache abstraction.
  2. Code Check & Format, CI/CD Plugin, Docker Integration are all ready to use out of the box.
  3. Comprehensive, design-driven, and environment-isolated unit testing.

Modernization

  1. Modern: Technology choices align with the latest trends in the open-source community.
  2. Configurable: Supports component selection on the web.
  3. Best Practices: Every variable, function, module, and component is designed with best practices in mind.
  4. Focused Boundaries: Stays within its functional boundaries, avoiding an "All In One" approach.

Quick Start

Confirm Environment Variables and Execution Permissions

# confirm .env and make sure process can use it
vim ${projectRoot}/.env
# confirm gradlew executable (unix-like OS)
chmod 755 ${projectRoot}/gradlew

Install Docker and Start Containers

cd ${projectRoot}
docker compose up -d database
docker compose build web
docker compose up -d web

(Optional) Start Locally

# confirm .env and gradle.properties make sure process can use it
vim ${projectRoot}/.env
docker compose up -d database
./gradlew jooqCodegen
${projectRoot}/gradlew bootRun

Common Tools

Compile the Project and Generate Table Mapping Objects and Data Access Layer Based on Database Schema

# generate schema mapping codes
./gradlew jooqCodegen
# output ->
# projectRootDir/build/generated-sources
# └── org.jooq.generated
#    └── tables # table mapping
#       ├── daos # Data Access Layer
#       ├── pojos # mapping dto
#       └── records # jooq query record

Global Code Formatting

./gradlew spotlessApply

Global Code Inspection

./gradlew pmdMain

Unit Testing

# will automatically generate jacocoTestReport
./gradlew test

更多文档请点击...

🍓 Test Report

cover

summary

🍟 Miscellaneous

  1. This repository is primarily for code display and issue collection. The code may lag behind the version available for download from the product's official website.
  2. Please submit any feedback, discussions, or bugs to the issue tracker, and I will handle them seriously.
  3. I also welcome any ideas from other communities and will actively participate in the replies.
  4. More new video tutorials are being recorded, please stay tuned.
  5. Promote Mjga to your colleagues and friends, and let Java be great again.

🔮 User Community

Static Badge Static Badge Static Badge Static Badge

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ccmjga/mjga-scaffold.git
git@gitee.com:ccmjga/mjga-scaffold.git
ccmjga
mjga-scaffold
mjga-scaffold
main

搜索帮助