Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

verbiricha/habla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

habla

A web client to read/write long form nostr content.

Available in https://habla.news.

Contribute

To run Habla locally for development,

  • install node, git, yarn
  • clone Habla
  • run:
    yarn install
    yarn start
    

This should start a local server and open a browser with the project. You can now start modifying the code and see the changes in real time.

Run your own instance

yarn install
yarn build
rsync --recursive --delete /path/to/habla/build/ your.server:/your/path/on/server/

You will need a domain or subdomain for this as file references in the code are absolute paths, currently not allowing it to run Habla under https://yourserver.com/habla/ for example.

For deep links to articles for example to work, you have to tell your server to have requests not found be handled by your index.html. In nginx that can be achieved by adding:

server {
  ...
  location / {
    autoindex off;
    expires off;
    add_header Cache-Control "public, max-age=0, s-maxage=0, must-revalidate" always;
    try_files $uri /index.html =404;
  }