# 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
Or you can do it in 2 lines ;-) :
pip install nostr-relay
nostr-relay serve
Please Login to reply.
Nice! Although I got:
> ModuleNotFoundError: No module named 'sqlalchemy.ext.asyncio'
guess it needs python3.11
OK worked on ubuntu 22.04, not ubuntu 20.04, I probably had an old pip
#[2]