Why Nostr? What is Njump?
2024-07-05 12:20:24

Npub.pro on Nostr: 1. Create git repo: ```export USER=<github-user-name> export REPO=nostr-site-demo ...

This is a long form article, you can read it in https://habla.news/a/naddr1qvzqqqr4gupzqz82megd75w6ffp0thqytc6mxuvs9crdd2q9y9d7c0tjm358ejcyqqdxsmmh946x7ttnv4kxvttgdaehgtt0dckkw6t5dp6kyxzm8mn
  1. Create git repo:

”`export USER= export REPO=nostr-site-demo mkdir \(REPO; cd \)REPO;


2. Create $REPO on github.

3. Init local repo and push to Github:

```echo "# nostr-site-demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/$USER/$REPO.git
git push -u origin main
  1. Setup Github Pages:
  • open repo page on github
  • open Settings -> Pages
  • under Branch choose ‘main’ and save
  1. Wait 1-2 minutes and reload the settings -> Pages page until you see “Your site is live at URL”.
  • copy URL of your github pages website
  1. Go to npub.pro admin panel and choose your site and open Settings.
  • edit Website Address, paste the URL of your Github Pages address
  • click Save
  1. Download the updated zip archive for self-hosting at .npub.pro/dist.zip

  2. Extract files from archive to your REPO dir, commit, push to Github:

unzip path/to/zip/dist.zip
git add .
git commit -m "Add site files"
git push origin main
  1. Wait 1 minute for Github to update your site.

You should be done now!

Author Public Key
npub1pr4du5xl28dy5sh4msz9uddnwxgzupkk4qzjzklv84edc6ruevzqlxmkzp