🚀코드마스터
📊

Google Sheets 자동화 라이브 데모

버튼 클릭 한 번으로 실제 Google 스프레드시트가 생성됩니다.

Service Account 인증Google Sheets API v4googleapis npm실시간 읽기/쓰기
STEP 1

스프레드시트 자동 생성

서버에서 Google Service Account로 인증하여 실제 Google Drive에 스프레드시트를 생성합니다.

⚙️ 구현 방식

백엔드 (Next.js API Route)

  • Google Service Account 인증
  • googleapis npm 패키지
  • 환경변수로 보안 처리
  • Sheets API v4 사용

프론트엔드 (React)

  • fetch API로 Next.js 라우트 호출
  • 실시간 데이터 읽기/쓰기
  • 반응형 테이블 표시
  • 사용자 입력으로 행 추가
// API Route 핵심 코드
const auth = new google.auth.GoogleAuth({
credentials: { client_email, private_key }
scopes: ['...spreadsheets']
});
const sheets = google.sheets({ version: 'v4', auth })