commit 34b8d41a28aac175224fc830532f84f14e36d5c4 Author: kric_jspark Date: Fri Jul 3 16:20:48 2026 +0900 260703_01_FST: First Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25cbb4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +dist/ +*.tgz +.idea/ +*.iml +.DS_Store diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9e454ff --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +registry=https://registry.npmjs.org/ +@kri:registry=https://gitea.kric.com/api/packages/KRi/npm/ +//gitea.kric.com/api/packages/KRi/npm/:_authToken=${GITEA_NPM_TOKEN} diff --git a/README.md b/README.md new file mode 100644 index 0000000..4ca9932 --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +# @kri/create-spring-app + +KRI 표준 Spring Boot 프로젝트 생성 CLI입니다. + +## 기본 구성 + +- Java 17 +- Spring Boot 3.5.7 +- Gradle Groovy DSL / Gradle Wrapper 8.14.3 +- `com.kri.common:starter:latest.release` +- JPA + QueryDSL + JdbcTemplate 벌크 처리 예제 +- EmbeddedId 복합키 예제 +- MyBatis 선택 설치 +- MySQL 또는 MSSQL 선택 +- JWT/Security와 API Key는 공용 Starter 설정으로 활성화 +- Scheduler, 파일 저장소, 정적 리소스 설정 예제 +- Jenkinsfile 및 systemd 서비스 예제 + +## 개발 + +```powershell +npm install +npm run typecheck +npm run build +``` + +## 로컬 실행 테스트 + +```powershell +node .\dist\cli.js sample-server --yes --skip-build +``` + +전체 생성 및 Gradle 빌드: + +```powershell +node .\dist\cli.js sample-server --yes +``` + +## 배포 후 사용 + +```powershell +npx @kri/create-spring-app sample-server +``` + +## 옵션 + +```text +--base-package 기본 패키지 +--description 프로젝트 설명 +--port 서버 포트 (기본 8080) +--database mysql|mssql DB 종류 (기본 mysql) +--mybatis MyBatis 예제 포함 +--repo-url Gitea 저장소 URL +--app-root Ubuntu 배포 경로 +--service-name systemd 서비스 이름 +--branch 배포 브랜치 (기본 master) +--agent-label