mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-05 04:12:25 +00:00
docs(ai): update quickstart and contributing (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
f553714eeb
commit
35d09e2379
1 file changed
+14
-9
@@ -165,7 +165,16 @@ To run **bitvid** locally:
|
||||
|
||||
_(Note: The default port is 3000, but `npx serve` may select a different port if 3000 is in use. Check your terminal output.)_
|
||||
|
||||
_Note: If you prefer manual steps, you can run `npm run build` followed by `npx serve dist`._
|
||||
_Note: If you prefer manual steps, you can run `npm run build` followed by `npx serve dist` (or `cd dist && python3 -m http.server`)._
|
||||
|
||||
5. Verify setup:
|
||||
|
||||
Run tests and linting to ensure everything is working correctly.
|
||||
|
||||
```bash
|
||||
npm run test:unit
|
||||
npm run format
|
||||
```
|
||||
|
||||
#### Quick Reference
|
||||
|
||||
@@ -257,7 +266,7 @@ const event = buildVideoPostEvent({
|
||||
|
||||
console.log("Event constructed:", event);
|
||||
|
||||
// 2. Publish using the high-level client (requires browser/extension or active signer)
|
||||
// 2. Publish the event (requires browser/extension or active signer)
|
||||
/*
|
||||
import { nostrClient } from "./js/nostrClientFacade.js";
|
||||
|
||||
@@ -265,14 +274,10 @@ import { nostrClient } from "./js/nostrClientFacade.js";
|
||||
await nostrClient.init();
|
||||
|
||||
// Login (prompts NIP-07 extension)
|
||||
await nostrClient.login();
|
||||
await nostrClient.loginWithExtension();
|
||||
|
||||
// Publish! (Handles signing and relay broadcasting)
|
||||
await nostrClient.publishVideo({
|
||||
title: "My First Video",
|
||||
url: "https://example.com/video.mp4",
|
||||
description: "Published via bitvid SDK"
|
||||
}, nostrClient.pubkey);
|
||||
// Publish the built event
|
||||
await nostrClient.signAndPublishEvent(event);
|
||||
*/
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user