experiment-with-nostr
Go to file
2024-08-12 19:38:09 +02:00
.gitignore initial 2024-08-12 19:38:09 +02:00
createEventTextNote.js initial 2024-08-12 19:38:09 +02:00
generateKeys.js initial 2024-08-12 19:38:09 +02:00
listen.js initial 2024-08-12 19:38:09 +02:00
package.json initial 2024-08-12 19:38:09 +02:00
README.md initial 2024-08-12 19:38:09 +02:00
send.js initial 2024-08-12 19:38:09 +02:00
yarn.lock initial 2024-08-12 19:38:09 +02:00

Nostr Playgraound to SC24

Prepare the environment by installing a docker container with the Nostr relay server.

docker pull scsibug/nostr-rs-relay
docker run -p 7000:8080 scsibug/nostr-rs-relay

Install the necessary dependencies by running the following commands:

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