템플릿 초기 버전

This commit is contained in:
2026-06-11 20:31:50 +09:00
commit 55b5e28376
3 changed files with 35 additions and 0 deletions

20
README.md Normal file
View File

@@ -0,0 +1,20 @@
# Python(Flask) 앱 템플릿
Playground에 배포되는 Python 웹앱의 출발점입니다.
## 사용법
1. 이 저장소 화면 오른쪽 위 **"이 템플릿 사용"** 버튼으로 내 앱 저장소를 만듭니다
(소유자: **playground**, 이름: 영문 소문자, 예: `2610434-lunch-picker`).
2. Coder 워크스페이스 터미널에서 복제합니다:
`git clone https://gitea.bokdev.in/playground/<내앱이름>.git`
3. Claude Code에게 원하는 앱을 만들어 달라고 하세요. 예:
"main.py를 고쳐서 점심 메뉴 추천 앱을 만들어줘"
4. 커밋/푸시 후 Kubero(https://kubero.bokdev.in)에서 배포하면
`http://<내앱이름>.apps.bokdev.in` 으로 접속됩니다.
## 꼭 지킬 규칙 (배포 규격)
- HTTP 서버는 **0.0.0.0 의 8080 포트**에서 떠야 합니다.
- 새 패키지를 쓰면 `requirements.txt`에 꼭 추가하세요 (Claude에게 부탁하면 해줍니다).
- 파일에 저장한 데이터는 재배포하면 사라집니다.

14
main.py Normal file
View File

@@ -0,0 +1,14 @@
# 내 앱의 시작점입니다. Claude Code에게 "이 앱을 ~하게 바꿔줘"라고 요청하세요.
# 규칙: 반드시 0.0.0.0:8080 에서 HTTP 서비스해야 합니다 (배포 규격).
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "<h1>안녕하세요! 나의 첫 Playground 앱입니다 🎉</h1>"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080)

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
flask==3.1.*