grain.social is a photo sharing platform built on atproto.
at main 937 B view raw
1#!/usr/bin/env bash 2 3# Helpful when running local-infra. Specify the repos you've created on a local pds instance. 4 5DB="grain.db" 6REPOS="did:plc:gdvspmipkels2qp43m4czqhp" 7COLLECTIONS="social.grain.gallery,social.grain.actor.profile,social.grain.photo,social.grain.favorite,social.grain.gallery.item,social.grain.graph.follow,social.grain.photo.exif,social.grain.comment" 8EXTERNAL_COLLECTIONS="app.bsky.actor.profile,app.bsky.graph.follow,sh.tangled.graph.follow,sh.tangled.actor.profile" 9COLLECTION_KEY_MAP='{"social.grain.favorite":["subject"],"social.grain.graph.follow":["subject"],"social.grain.gallery.item":["gallery","item"],"social.grain.photo.exif":["photo"],"social.grain.comment":["subject"]}' 10 11deno run -A --env=.env jsr:@bigmoves/bff-cli@0.3.0-beta.40 sync \ 12 --db="$DB" \ 13 --repos="$REPOS" \ 14 --collections="$COLLECTIONS" \ 15 --external-collections="$EXTERNAL_COLLECTIONS" \ 16 --collection-key-map="$COLLECTION_KEY_MAP"