1. Create git repo:
```export USER=<github-user-name>
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
```
4. Setup Github Pages:
- open repo page on github
- open Settings -> Pages
- under Branch choose 'main' and save
5. 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
6. Go to npub.pro [admin panel](https://npub.pro/admin) and choose your site and open Settings.
- edit Website Address, paste the URL of your Github Pages address
- click Save
7. Download the updated zip archive for self-hosting at <yoursite>.npub.pro/dist.zip
8. 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
```
9. Wait 1 minute for Github to update your site.
You should be done now!
Do need a pro plan to download zip archive for hosting at github ? asking cuz I am getting a 404 at https://npub.pro/dist.zip
Please ignore .. I figured it out .. the url is
<your nostr name>.npub.pro/dist.zip
username.npub.pro/dist.zip
Hello,
How do I get npub directly on another VPS host?
Just follow the guide but upload the files from zip archive to your host, let me know if you need more help.
Hello, how can i find delete websites in admin dashboard?
thanks
Does npub also work in a directory? domain.com/max/