Global Feed Post Login
Replying to Avatar Melvin Carvalho

# To run a relay in 3 lines

## Prerequsites

Install docker

## Install nostr-rs-relay

sudo docker pull scsibug/nostr-rs-relay

## Run relay

mkdir data

sudo docker run -it -p 4100:8080 --mount src=$(pwd)/data,target=/usr/src/app/db,type=bind scsibug/nostr-rs-relay:latest

## Result

Relay will be running on port 4100 and events will be in ./data

## Testing

echo '["REQ","sub",{}]' | websocat -n ws://localhost:4100

Requires websocat, and some events

Avatar
tempestk 2y ago

You are the king of markdown

Reply to this note

Please Login to reply.

Discussion

No replies yet.