Prism#
Prism is a simple ATProto AppView service for gmstn. Point it to a relay and it'll filter relay events for you and store/cache them for future retrieval so that queries aren't so heavy on other PDSes directly.
Other services may subscribe to a Prism instance as though it is a relay itself and receive the filtered gmstn events as they are played from the parent relay.
Prism implements endpoints for accessing the cache feed, which are xrpc compatible and the lexicons can be found in lexicons/.
Backfill batteries included. :3
如何在本地运行#
请按照以下步骤在您的本地计算机上设置和运行此应用程序。
启动数据库: 首先,使用 Podman 或 Docker Compose 启动 PostgreSQL 数据库服务。
docker-compose up
或
podman-compose up
安装依赖: 使用 pnpm 安装项目所需的所有依赖项。
bun install
运行数据库迁移: 应用所有待处理的数据库迁移,以确保您的数据库结构是最新的。
bun run db:migrate
启动开发服务器: 最后,启动本地开发服务器。
bun run dev
服务启动后,您应该可以在 http://localhost:3000 (或您配置的端口) 上访问应用程序。