다른 사람들은 어떻게 생각할까?
Translation pending
SocialTypeScript · PLpgSQLGitHub @leokim9887OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
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 ↗사람들의 선택으로 완성되는 참여형 투표 웹 서비스입니다. 로그인 없이 질문에 투표하고, 투표 뒤에 선택 비율과 이유를 확인합니다.
npm install
npm run dev
브라우저에서 http://localhost:3000 을 엽니다.
NEXT_PUBLIC_SUPABASE_URL과 NEXT_PUBLIC_SUPABASE_ANON_KEY가 없으면 로컬 데모 모드로 실행됩니다.
.env.example을 복사해 .env.local을 만듭니다.
| 이름 | 어디에 쓰나 | 공개 여부 |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase 프로젝트 URL | 브라우저에 공개되는 값 |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anon 키 | 브라우저에 공개되는 값. RLS로 권한이 제한됩니다. |
NEXT_PUBLIC_SITE_URL | 공유용 사이트 주소. 로컬은 http://localhost:3000 | 공개 값 |
서비스 롤 키는 코드와 환경 변수 예시에 넣지 않습니다. 이 MVP는 그 키 없이 anon 키와 데이터베이스 함수로 동작합니다.
supabase/migrations/ 안의 .sql 파일을 이름 순서대로 실행합니다. 처음이면 20261023120000_init.sql부터, 이미 연결한 프로젝트면 아직 안 돌린 파일만 이어서 실행하면 됩니다. 프로필·아바타 기능은 20261028200000_profiles.sql이 필요합니다.supabase/seed.sql 전체를 한 번에 실행합니다. 질문과 선택지만 들어가고, 가짜 투표는 들어가지 않습니다. 파일 안의 begin부터 commit까지 한 트랜잭션으로 실행해야 합니다..env.local에 Project URL과 anon public 키를 넣습니다. Settings → API에서 확인할 수 있습니다.투표·댓글·답글·질문 제안 전에 고유 닉네임을 설정해야 합니다. 프로필 사진은 선택 사항이며, 이미 쓰는 닉네임은 사용할 수 없습니다. 댓글·답글과 승인된 질문에는 닉네임이 표시됩니다. 프로필을 만든 뒤에는 상단 닉네임 메뉴에서 수정, 내 질문(/me/questions), 내가 쓴 댓글(/me/comments)로 이동할 수 있습니다.
insert into public.admin_users (user_id)
values ('여기에-관리자-uuid');
/admin에서 그 이메일과 비밀번호로 로그인합니다. 주소만 알거나 익명 참여자 상태에서는 승인, 숨김, 삭제를 할 수 없습니다.관리자 화면에서 질문 제안을 승인하거나 거절하고, 질문 공개 상태를 바꾸고, 신고된 의견이나 질문을 숨기거나 의견을 삭제할 수 있습니다. 승인된 제안만 공개 질문이 됩니다.
npm run dev
npm run test
npm run lint
npm run build
시드 SQL을 질문 원본과 다시 맞출 때:
node --experimental-strip-types scripts/build-seed-sql.ts
Vercel에 이 프로젝트를 연결하고, 위의 공개 환경 변수 3개를 Production 환경에 넣습니다. Supabase 대시보드의 Authentication → URL Configuration에 배포 주소를 추가합니다. 서비스 롤 키는 Vercel에도 넣지 않아도 됩니다.