Skip to content

nostrver-se/nl.nostrver.se

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this project

This is a nostr relay with one database for each country. Therefore, when someone makes a connection the user's IP will be used to defined the user's country and only give events associated with that specific country.

For example, if your IP address is from Portugal then you will only receive events that are within Portugal's database.

Running from the command line

go build && ./countries

Test this application

If you want to do some rough tests you can use the nak tool which allows you to perform WebSocket requests from the command line in a very easy and straightfoward way.

Add an event with default parameters and pretty format response

nak event ws://localhost:40404 | jq

Get relay's info and pretty format response

nak relay ws://localhost:40404 | jq

Delete an event and pretty format response

nak event -k 5 -e <id> <relay> | jq

The <relay> of this project can be expressed as ws://localhost:40404

About

Dutch Nostr relay nl.nostrver.se

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published