hn

what

front-end alternative for hacker news. php. no tracking.

requires

a web server (nginx or apache), php 8.0+, optional minify.

install

sudo apt install nginx-full php php-cgi php-fpm minify
git clone $repo_url

minify css after changes:

minify -o static/styles.min.css static/styles.css

deploy

copy the code to your webroot. route all errors to index.php.

  • nginx:
location / {
    try_files $uri $uri/ /index.php?$args;
}

apache (.htaccess):

FallbackResource /index.php

built with

php, html, minify (for css).

todo

  • recursive descendant comment threads
  • polls (ConstructPoll)
  • pagination / load more

contributing

see CONTRIBUTING.txt and CODE_OF_CONDUCT.txt.

versioning

none. read the git log.

license

0bsd. see LICENSE.md.

About

Python 62.6%Org 15.1%HTML 11.2%Markdown 11%

1 contributorcmc

Clone

SSH
git clone ssh://git@gitbay.org/krz/hn.git
HTTPS
git clone https://gitbay.org/krz/hn.git