3 Star 13 Fork 2

ccmjga/mjga-scaffold

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
CCmjga- CCmjga 2.9.1 release 50c4a67 4 months ago
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

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

MIT License Copyright (c) 2023 Chuck Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

🏆🏅🥇 一个全新设计的 Java Web 脚手架;一种全新的 Java 生态;一门现代化的 Java 编程哲学。 expand collapse
Java and 2 more languages
MIT
Cancel

Releases (2)

All
7 months ago

Contributors

All

Activities

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

Search