a nostr web interface sandbox
 
 
 
Go to file
OFF0 cfb7a2dc35
0.0.8
2022-12-08 08:44:49 +01:00
src layout: add dummy profile pic to recommend server 2022-12-08 08:43:08 +01:00
tools ci: rsync dist/ over to the live server 2022-11-11 22:42:34 +01:00
.gitignore initial 2022-11-06 02:35:27 +01:00
.woodpecker.yml ci: remove "branch" from conditional release pipeline execution 2022-11-23 00:29:29 +01:00
LICENSE initial 2022-11-06 02:35:27 +01:00
README.md docs: clarify how the live instance is currently updated from the CI 2022-11-12 11:19:38 +01:00
esbuildconf.js layout: add dummy profile pic to recommend server 2022-12-08 08:43:08 +01:00
package-lock.json 0.0.8 2022-12-08 08:44:49 +01:00
package.json 0.0.8 2022-12-08 08:44:49 +01:00

README.md

nostr web sandbox

a playground for a web interface to nostr. some useful resources:

dev

nodejs v18.x and npm v8.x are recommended.

after npm install, start by running a dev server with:

npm run serve

and point a browser to http://127.0.0.1:8001/

the serve command injects a live reload snippet. to build a "production" copy, execute

npm run build

the build is done using esbuild, with a config in esbuildconf.js. the result is placed in dist directory.

release

  1. make sure version field in package.json as seen by remote git on master branch matches the tag created in the next step.
  2. tag a commit on master branch with a git tag v<vesion>.
  3. push the tag to the remote: git push --tags.

the CI then receives a git tag event, executes npm run build, creates a tar.gz with all the files found in dist directory and uploads it as a new release artifact. the release is named after the tag name.

the idea is that nostr web instances are then notified about a new release, download the tar.gz archive and update their local copies. this is not yet implemented. at the moment, the CI symply rsync's dist/ with a remote on https://nostr.ch.