Files

83 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 글벗 Light v1.0
상시 업무용 HTML 보고서 자동 생성기
## 🎯 기능
- **문서 입력**: HTML 파일 업로드 또는 텍스트 직접 입력
- **페이지 옵션**: 1페이지 / 2페이지 / N페이지 선택
- **Claude API**: 각인된 양식으로 자동 변환
- **다운로드**: HTML, PDF 지원
- **HWP 변환**: 로컬 스크립트 제공
## 🚀 Railway 배포
### 1. GitHub에 푸시
```bash
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/YOUR_USERNAME/geulbeot-light.git
git push -u origin main
```
### 2. Railway 연동
1. [Railway](https://railway.app) 접속
2. "New Project" → "Deploy from GitHub repo"
3. 저장소 선택
4. 환경변수 설정:
- `ANTHROPIC_API_KEY`: Claude API 키
- `SECRET_KEY`: 임의의 비밀 키
### 3. 배포 완료
Railway가 자동으로 빌드 및 배포합니다.
## 🖥️ 로컬 실행
```bash
# 가상환경 생성
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 패키지 설치
pip install -r requirements.txt
# 환경변수 설정
export ANTHROPIC_API_KEY="your-api-key"
# 실행
python app.py
```
http://localhost:5000 접속
## 📁 프로젝트 구조
```
geulbeot-light/
├── app.py # Flask 메인 앱
├── templates/
│ ├── index.html # 메인 페이지
│ └── hwp_guide.html # HWP 변환 가이드
├── prompts/
│ └── system_prompt.txt # Claude 시스템 프롬프트
├── requirements.txt
├── Procfile
├── railway.json
└── README.md
```
## 🎨 각인된 양식
- A4 인쇄 최적화 (210mm × 297mm)
- Noto Sans KR 폰트
- Navy 계열 색상 (#1a365d 기본)
- 구성요소: page-header, lead-box, section, data-table, bottom-box 등
## 📝 라이선스
Private - GPD 내부 사용