Express/SQLite API와 Docker 구성을 추가하고 로그인·덱 저장·공개 덱·관리자·프로필 화면을 구현했다. 결과 화면 저장 UX, 헤더 프로필, 애드센스용 app-shell 레이아웃(1280px) 및 문서를 반영했다. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
701 B
Markdown
29 lines
701 B
Markdown
# 연동 예제
|
|
|
|
`integrations/example.html`을 브라우저에서 열거나, 배포 후 아래 URL로 테스트할 수 있습니다.
|
|
|
|
## 옆 프로젝트에 복사할 파일
|
|
|
|
```
|
|
integrations/uadeck-deck-client.js
|
|
```
|
|
|
|
## 최소 연동 코드
|
|
|
|
```javascript
|
|
const client = new UaDeckDeckClient({
|
|
baseUrl: 'https://uniare.sori.studio/api/v1',
|
|
imageBase: 'https://uniare.sori.studio',
|
|
});
|
|
|
|
// UADECK 공유 링크에서 덱 로드
|
|
const deck = await client.fetchFromUrl('https://uniare.sori.studio/d/SHARE_CODE');
|
|
|
|
// 카드 사용
|
|
for (const card of deck.cards) {
|
|
console.log(card.number, 'x', card.count, card.imageUrl);
|
|
}
|
|
```
|
|
|
|
자세한 내용은 `docs/api-integration.md`를 참고하세요.
|