Skip to content

silencesoft/written

Repository files navigation

Written

Blog application using nostr.

Getting Started

git clone https://github.com/silencesoft/written.git
cd written
yarn
cp .env.example .env.local
yarn dev

Modify the environment variables file:

  • NEXT_PUBLIC_URL : Website url
  • NEXTAUTH_URL : Website url
  • NEXTAUTH_SECRET : Secret word for next authentication
  • NEXT_PUBLIC_NAME : Application name, it shows this name in the header.
  • NEXT_PUBLIC_FOOTER_COPYRIGHT : Copyright text in the footer.
  • NEXT_PUBLIC_RSS : (true - false) Create a RSS File (if it can write in folders).
  • NEXT_PUBLIC_RSS_PUBLIC : (true - false) Use public directory ot tmp to save the file
  • NEXT_PUBLIC_HIDE_SIDEBAR : (true - false) Hide sidebar
  • NEXT_PUBLIC_RELAY : Nostr Relay to be used. To use more than one, type them separated by commas.
  • NEXT_PUBLIC_ADMIN : Administrator's public key.
  • NEXT_PUBLIC_AUTHOR_1 NEXT_PUBLIC_AUTHOR_2 ... : Blog Publishers' public keys (any as required).

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Deploy to DigitalOcean

You can use this button to deploy (update repository url to yours):

DigitalOcean

Or go to: https://cloud.digitalocean.com/apps/new?repo=https://github.com/silencesoft/written/tree/main

Thanks

My Nostr Public key: npub1gcmpunjrue2aq5um7qgnp4p6uxarlxw2z6djehaf0emxjf6gr9us548zdf

Buy me a coffee (with satoshis): https://lncoffee.me/silencesoft