Learn Nostr using TypeScript & nostr-tools.
To follow along with this tutorial you can install bun to run the files. You can learn more about Bun at here.
curl -fsSL https://bun.sh/install | bash
Clone the project:
git clone https://github.com/nodetec/nostr-tutorial
cd nostr-tutorial
Install the necessary packages with:
bun install
Once you have installed the packages, you can run the keypair.ts
file with:
bun keypair.ts
This will execute the TypeScript file using Bun. You can use this same command to run the other TypeScript files as well.
For more information on Nostr and the nostr-tools library, check out the following resources: