Katja Lutz on Nostr: Running it locally (for test purposes) is relatively simple. The system needs an ...
Running it locally (for test purposes) is relatively simple. The system needs an uptodate version of nodejs installed, then to start NP you go into its folder and run "npm run build && npm run start" (or just start, if its already built).
Hosting it locally is done with the same commands, but comes with the usual self-hosting challenges:
- How do you map the server port (3000) do your public ip?
- How do you add an ssl certificate for https?
The port forwarding setup depends on the local network setup. Some routers make it easy, others do not even allow it.
Personally I like
https://caddyserver.com/ to automatically handle the ssl certificate.
---
File uploads are currently just done directly over the Page Editor - definitely a process that needs to get better before v1.0 😅.
Published at
2024-08-29 06:46:24Event JSON
{
"id": "8fe2497deded961bdaf479478c07d6a999acbc355edfaa0f4f3487c626e7487d",
"pubkey": "caf0b76c5efcc2498bd77ab23c9a3f4c64b13f79a9cd7633ce08fd556f8c4a43",
"created_at": 1724913984,
"kind": 1,
"tags": [
[
"e",
"3075a033f8d6027a24341e87b0455964ef18c1e7c4c306724538becf490bb4be",
"",
"root"
],
[
"e",
"f482a5d457ae5e26c8c369c42a4bd674e513fd995dfc81d534507dda5977c7db"
],
[
"e",
"db998fd41d1637c0d8071317c977e0973a4b1c6a395ef60bdbdb8e930ddfa1bf",
"",
"reply"
],
[
"p",
"ac3f6afe17593f61810513dac9a1e544e87b9ce91b27d37b88ec58fbaa9014aa"
],
[
"p",
"caf0b76c5efcc2498bd77ab23c9a3f4c64b13f79a9cd7633ce08fd556f8c4a43"
],
[
"p",
"51013526828bac6a18e07b94a0b4f3c3d337c9604fb5cd7bc9b3f444afbc96e1"
],
[
"r",
"https://caddyserver.com/"
]
],
"content": "Running it locally (for test purposes) is relatively simple. The system needs an uptodate version of nodejs installed, then to start NP you go into its folder and run \"npm run build \u0026\u0026 npm run start\" (or just start, if its already built). \n\nHosting it locally is done with the same commands, but comes with the usual self-hosting challenges:\n- How do you map the server port (3000) do your public ip?\n- How do you add an ssl certificate for https?\n\nThe port forwarding setup depends on the local network setup. Some routers make it easy, others do not even allow it.\n\nPersonally I like https://caddyserver.com/ to automatically handle the ssl certificate.\n\n---\n\nFile uploads are currently just done directly over the Page Editor - definitely a process that needs to get better before v1.0 😅.",
"sig": "70ae7cb0cd40b874d689cfc0e5732c45a5d8f84e2d83798997c1136ec9df27b4221cf4b449f74a9ad122c2257b5dea13c5195b40791e39420e4366f7398b86ef"
}