Pubky Homeserver
A pubky-core homeserver that acts as users' agent on the Internet, providing data availability and more.
Usage
Library
You can use the Homeserver as a library in other crates/binaries or for testing purposes.
use Result;
use Homeserver;
async
If homeserver is set to require signup tokens, you can create a new signup token using the admin endpoint:
let response = pubky_client
.get
.header // Use your admin password. This is testnet default pwd.
.send
.await
.unwrap;
let signup_token = response.text.await.unwrap;
via CLI with curl
# Use your admin password. This is testnet default pwd.
or from JS
const url = "http://${homeserver_address}/admin/generate_signup_token";
const response = await client.;
const signupToken = await response.;
Binary
Use cargo run
Or Build first then run from target.
Build
Run with an optional config file