Skip to content

derekross/nblog

 
 

Repository files navigation

nblog

nostr-based ghost blog See a running demo at https://hello-ndk.vercel.app

Setup

Vercel (Quick and Easy)

Simply click this bright, blue button:

Deploy with Vercel

Locally

Ensure you have Node.js installed on your computer.

  1. Fork this repository
  2. Git clone you new fork to your server
  3. Inside the project root, run git checkout master to switch to the master branch for the most stable version
  4. Add a .env file to the project root. See the Configuration section
  5. Run yarn to install node packages
  6. Run yarn build to build the production server
  7. Run yarn preview to run the sever.

If you did it right, that's about it!

Configuration

Configuration is done with enviroment variables.

  • PUBLIC_PUBKEYS List of HEX pubkeys to fetch events for seperated by a ,
  • PUBLIC_RELAYS List of relay URLs to connect to seperated by a ,.
    • It's best to keep this list as small as possible. Less relays = faster blog and less room for errors (updates not being published)
  • PUBLIC_NAME A name for your blog. ex: nym's blog
  • PUBLIC_PICTURE A Picture URL for your blog, used in favicon and header.
  • PUBLIC_REACTIONS Controls if you want reactions underneath your posts. Can either be true or false.

About

self-host nostr ghost blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 46.9%
  • TypeScript 45.1%
  • JavaScript 5.8%
  • CSS 1.4%
  • HTML 0.8%