CleanFrame
A personal home screen for Samsung The Frame. A starting point to fork and adapt.
제주의 역사와 문화 명소를 둘러보며 스탬프를 모으고 나만의 답사 코스를 만듭니다
Translation pending
AI summary · website content
LifestyleGitHub @kmgdlekOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗1단계(파일 데이터)를 API 호출 방식으로 바꾼 버전입니다.
브라우저(index.html + app.js)
├─ GET /api/places → Supabase DB (jeju_location + jeju_general 을 합친 뷰)
├─ GET /api/photos → Pixabay 사진 검색
├─ GET /api/weather → Open-Meteo 현재 날씨 (키 필요 없음)
└─ GET /api/forecast → Open-Meteo 내일부터 7일 예보 (키 필요 없음)
날씨(Open-Meteo)는 키가 필요 없습니다. 나머지 비밀 키는 모두 서버 함수(api/*.js)에서만 쓰고, 브라우저에는 내려가지 않습니다.
| 이름 | 용도 | 어디서 얻나 |
|---|---|---|
PIXABAY_API_KEY | 사진 검색 | https://pixabay.com/api/docs/ |
SUPABASE_URL | DB 주소 | Supabase → Project Settings → API |
SUPABASE_ANON_KEY | DB 읽기 키(읽기 전용) | 같은 곳의 anon / publishable key |
VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY 이름으로 이미 등록해 두었다면 그대로 써도 됩니다..env.example 을 .env 로 복사해서 값을 채웁니다. (.env 는 .gitignore 에 들어 있어 GitHub 에 올라가지 않아요)service_role 키는 쓰지 않습니다. 절대 넣지 마세요.SQL Editor 에서 아래 파일을 순서대로 붙여넣고 Run 합니다.
supabase/schema.sql — 테이블 2개 + 합친 뷰 jeju_places + 읽기 전용 보안(RLS)supabase/seed_1_location.sql — 위치정보 120건supabase/seed_2_general_1.sql, _2.sql, _3.sql — 일반정보 120건 (40건씩)DB 에 연결하지 못하면 /api/places 가 data/places.json(같은 내용)으로 대신 답하고,
화면 아래에 "자료: 백업 파일"이라고 표시합니다. DB 에서 오면 "자료: Supabase DB"가 보입니다.
CSV 를 바꾸면 python3 -I scripts/make_seed.py 로 SQL 과 백업 파일을 다시 만듭니다.
node dev-server.mjs
→ http://localhost:3000 (Vercel 과 같은 방식으로 /api/* 가 동작합니다)
cd 김민기_2단계
git init -b main
git add .
git status # ← .env 가 목록에 없는지 꼭 확인!
git commit -m "2단계: API 호출 버전"
git remote add origin https://github.com/kmgdlek/day5.git
git push -u origin main
day5 저장소 선택 (Framework Preset: Other, Build Command 비움)PIXABAY_API_KEY, SUPABASE_URL, SUPABASE_ANON_KEY) 등록 후 DeployCmd + Shift + N)에서 Vercel 링크를 열어 확인: 목록, 3D 지도, 날씨, 사진이 보이면 성공git ls-files | grep -i "\.env" # .env.example 만 나와야 해요
git grep -n -i "serviceKey\|api_key" -- . ':!.env.example' ':!README.md'