nostr-oer-client/README.md
2024-08-12 19:38:09 +02:00

25 lines
842 B
Markdown

# Nostr Playgraound to SC24
Prepare the environment by installing a docker container with the Nostr relay server.
```shell
docker pull scsibug/nostr-rs-relay
docker run -p 7000:8080 scsibug/nostr-rs-relay
```
Install the necessary dependencies by running the following commands:
```shell
git clone https://git.rpi-virtuell.de/Comenius-Institut/nostr-oer-client
cd nostr-oer-client
npm install
```
Run the script on your shell with the following command: `node listen.js`
This script listens for new messages on the Nostr network.
It connects to a Nostr relay server and subscribes to text notes/messages.
When a new message is received, it prints the message content, sender's public key, and timestamp.
Test with the send.js script to send a message.
run the send.js script with the following command: `node send.js`