Quick Start · How To Use EasyFK

How to Use EasyFK
Integrate & Launch in 4 Steps

Skip tedious infrastructure wiring and credential requests. Simply add the EasyFK repository to your pom.xml or settings.xml, import the unified com.mcst:easyfk-dependencies BOM, and compose 40+ production-grade components on demand—or spin up your next system in seconds with our open-source starter and code generator.

1 BOM Governs All Dependencies
Public Credential-Free Maven Repo
MySQL & PostgreSQL Support
Full-Stack Running in 10 Min

STEP 01 · ENVIRONMENT PREPARATION

Development Environment Prerequisites

Before integrating EasyFK or launching the open-source projects, make sure the following tools are installed locally.

01/Modern LTS

JDK Runtime

Backend compile & runtime environment aligned with the Spring Boot 3 ecosystem

02/Stable Release

Maven or Gradle

Backend build tool; both fully support EasyFK unified BOM governance

03/Relational DB

MySQL or PostgreSQL

Application database (SQL scripts include UTF-8 schema and initial RBAC seed data)

04/Cache & Frontend

Redis & Node.js

Redis powers caching and distributed state; Node.js runs the Next.js admin console

STEP 02 · MAVEN & GRADLE REPOSITORY

Configure Maven / Gradle Repository

No credentials required. Add the EasyFK repository URL directly in your project pom.xml, global settings.xml, or build.gradle to pull core framework and business module JARs (all business module sources are also 100% open source on GitHub).

pom.xml (Project-level)
<repositories>
    <repository>
        <id>easybuild</id>
        <url>https://maven.cnb.cool/jackorg/easybuild/-/packages/</url>
    </repository>
</repositories>
No login required · Copy & pull EasyFK artifacts directlyPublic Ready
EasyFK Maven Repository URLZero Credentials

No QR scan or token application needed. Add the repository URL below to your project pom.xml, global settings.xml, or build.gradle:

https://maven.cnb.cool/jackorg/easybuild/-/packages/
Project-level: Recommended—paste directly into pom.xml so every teammate shares the config without editing local settings
Global config: Configure once in ~/.m2/settings.xml to share across multiple local projects
Important Tip: If your local Maven settings.xml configures a public mirror (such as Aliyun), make sure mirrorOf includes the !easybuild exclusion (e.g. central,jcenter,!easybuild) so the mirror does not intercept EasyFK repository requests.

STEP 03 · UNIFIED BOM INTEGRATION

Import EasyFK BOM & Components

Manage your entire version baseline via com.mcst:easyfk-dependencies. Downstream projects only declare the modules they need—auto-configuration kicks in on import.

After configuring the repository, import the unified easyfk-dependencies BOM and add easyfk-core (no submodule version required) to verify connectivity.
<properties>
    <easyfk.version>3.5.16</easyfk.version>
</properties>

<dependencyManagement>
    <dependencies>
        <!-- 1. Import the unified EasyFK BOM platform -->
        <dependency>
            <groupId>com.mcst</groupId>
            <artifactId>easyfk-dependencies</artifactId>
            <version>${easyfk.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <!-- 2. Add the core starter module (version managed by BOM) -->
    <dependency>
        <groupId>com.mcst</groupId>
        <artifactId>easyfk-core</artifactId>
    </dependency>
</dependencies>

STEP 04 · LAUNCH YOUR PROJECT

Two Paths to Launch Your First EasyBuild Project

Scaffold a brand-new project from scratch with the code generator, or clone the open-source full-stack demo to run the complete loop locally.

Path A · Scaffold a New Business Project

One-Click Project Generation

Once your Maven/Gradle repository is configured, skip manual directory and build-file setup—generate a standardized project in seconds via the IDEA plugin or CLI:

1. Visual Generation via IntelliJ IDEA Plugin

Install EasyFK Generator from the JetBrains Marketplace, then use File → New → EasyFK Project or press Ctrl + Alt + Z to pick tables and generate.

2. Or Generate via the CLI
mkdir my-project && cd my-project
efg init   # Create generator.yml template
efg        # Generate full project skeleton & layered code
3. Pair with AI Skills for Core Business Logic

Mount the open-source easyfk-skill into your AI coding assistant so it implements complex domain logic strictly following EasyFK conventions.

Path B · Run the Open-Source Full-Stack System

Launch EasyBuild Admin in 3 Steps

DB → API (:5001) → Web (:4000)
1. Prepare the Database (MySQL or PostgreSQL)

Create a database named eb_demo and run the initialization SQL under doc/sql/ in the backend repo (includes full schema, default admin, and RBAC menus):

-- MySQL: create database (then run mysql_*.sql under doc/sql/)
CREATE DATABASE eb_demo DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-- Or PostgreSQL: create database (then run postgresql_*.sql under doc/sql/)
CREATE DATABASE eb_demo;
2. Clone & Start the Backend (easybuild-admin-api)

Update your DB password in config/application-dev.yml (or application-pgDev.yml for PostgreSQL), then run com.easybuild.admin.bms.ServerApp in IDEA or start from the terminal:

git clone https://github.com/easybuild-jack/easybuild-admin-api.git
cd easybuild-admin-api
mvn clean package -DskipTests && java -jar target/easybuild-admin-api.jar
# Verify API docs once running: http://localhost:5001/doc.html
3. Create & Start the Admin Frontend (easybuild-admin-front)

Verify NEXT_PUBLIC_API_URL=http://localhost:5001 in .env.development and launch the frontend:

npx easybuild-admin my-admin   # or clone the easybuild-admin-front repo
cd my-admin && yarn dev
# Open http://localhost:4000 in your browser to sign in
TROUBLESHOOTING · COMMON ISSUES

Setup & Launch FAQ

Q1: Maven fails to resolve com.mcst artifacts?

Check that your ~/.m2/settings.xml mirror's mirrorOf includes the !easybuild exclusion (e.g. central,jcenter,!easybuild). Without it, public mirrors like Aliyun intercept every request and block artifacts from the EasyFK repository.

Q2: Does importing easyfk-dependencies BOM pull all 40+ components into my project?

No. A BOM only declares compatibility-verified version constraints without adding actual JARs. Only the modules you explicitly declare in dependencies (such as easyfk-core or orm-mybatis) are included, keeping your build lean.

Q3: Database connection errors on startup, or switching to PostgreSQL?

Verify that the eb_demo database exists and the init SQL under doc/sql/ has been executed. When switching to PostgreSQL, in addition to selecting application-pgDev.yml in application.yml, replace db-mysql with db-postgresql in pom.xml or build.gradle.

Q4: No menus appear after logging into the frontend, or API calls return 404?

EasyBuild Admin menus are dynamically served by the backend based on RBAC permissions. Confirm the backend is running on port 5001, the init SQL finished cleanly, and NEXT_PUBLIC_API_URL in .env.development points to http://localhost:5001.

READY TO BUILD

Run Into Any Integration Issues? Reach Out Directly

Whether you are an individual developer exploring the open-source ecosystem or a team adopting the EasyFK core foundation, we provide direct, responsive engineering support.