Hello, PocketBase πŸ‘‹

Pi μœ„μ˜ PocketBase(pb.byfred.io)에 μ €μž₯λ˜λŠ” μ‹€μ‹œκ°„ λ°©λͺ…λ‘μ΄μ—μš”. λ‹€λ₯Έ μ°½μ—μ„œ 남긴 글도 λ°”λ‘œ λ‚˜νƒ€λ‚˜μš”.

μ—°κ²° 쀑…
0/200
이 νŽ˜μ΄μ§€λŠ” μ΄λ ‡κ²Œ λ™μž‘ν•΄μš”
import PocketBase from 'pocketbase'
const pb = new PocketBase('https://pb.byfred.io')

// λͺ©λ‘ 읽기
await pb.collection('hello').getList(1, 50, { sort: '-created' })
// μ“°κΈ°
await pb.collection('hello').create({ name, message })
// μ‹€μ‹œκ°„ ꡬ독
pb.collection('hello').subscribe('*', e => console.log(e.action, e.record))