Skip to content

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

did-method-plc Notes

plc.directory is a key part of DID-PLC.

DID-PLC is a popular DID method used on the ATProto ATmosphere — which includes Bluesky, Blacksky, Leaflet, and others.

The source-code for plc.directory open-source, and available here:

Running plc.directory Locally

If you are a computer-programmer working with ATProto, then you may want to run your own local alternative to plc.directory

Here are the steps to do that.

Step 1: clone the git repository

git clone https://github.com/did-method-plc/did-method-plc.git

Step 2: go inside

cd did-method-plc

Now you have to decide whether you want to run it bare on your computer, or run it within a Docker container.


Bare

(Bare) Step 3: install dependencies

pnpm install --pm-on-fail=ignore

(Bare) Step 4: build

pnpm --pm-on-fail=ignore build

(Bare) Step 5: run server

DATABASE_URL=postgres://postgres@localhost:5433/plc \
PORT=2582 \
DEBUG_MODE=1 \
ENABLE_MIGRATIONS=true \
pnpm --pm-on-fail=ignore start

Where you would replace postgres://postgres@localhost:5433/plc with whatever the URL to your Postgres sever is.

And, you would replace 2582 with whatever you want your port to be.


Docker

(Docker) Step 3: directory

cd did-method-plc/packages/server

(Docker) Step 4: docker

docker compose -f pg/docker-compose.yaml up -d db

(Docker) Step 5: run server

DATABASE_URL=postgresql://pg:password@localhost:5432/postgres \
PORT=2582 \
DEBUG_MODE=1 \
ENABLE_MIGRATIONS=true \
pnpm --pm-on-fail=ignore start

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors