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.
go build && ./countries
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.
nak event ws://localhost:40404 | jq
nak relay ws://localhost:40404 | jq
nak event -k 5 -e <id> <relay> | jq
The <relay> of this project can be expressed as ws://localhost:40404