- Clone the repo.
- Create a branch from
develop
.
- Start bitcoin in regtest:
make bitcoin-local
. This sets up a local Bitcoin regtest environment just for Nomen.- If you ever need to reset your local regtest: Stop
bitcoin
and runmake bitcoin-reset
.
- If you ever need to reset your local regtest: Stop
- Run
make bitcoin-wallet
to setup the default wallet for Bitcoin. - Create an alias like
regtest
tobitcoin-cli -datadir=.bitcoin/ -chain=regtest
.
- In a separate folder, clone
https://github.com/scsibug/nostr-rs-relay
. - Run
cargo build --release
. - Run
RUST_LOG=info target/release/nostr-rs-relay
.- This will start a local Nostr relay for Nomen to use.
- If you ever need to reset, just
rm nostr.db
and run the command again.
Back in your Nomen folder:
- Copy development.nomen.toml to
nomen.toml
in the root folder. - Run
cargo run -- server
to start the Nomen indexer.