krz/hn
clone: git clone https://gitbay.org/krz/hn.git
main: README.nfo · raw
1┌──────────────────────────────────────────────────────────────┐
2│ H N [ KRZ ] krz.sh │
3└──────────────────────────────────────────────────────────────┘
4
5WHAT
6 front-end alternative for hacker news. php. no tracking.
7
8REQUIRES
9 a web server (nginx or apache), php 8.0+, optional minify.
10
11INSTALL
12 sudo apt install nginx-full php php-cgi php-fpm minify
13 git clone $repo_url
14
15 minify css after changes:
16
17 minify -o static/styles.min.css static/styles.css
18
19DEPLOY
20 copy the code to your webroot. route all errors to index.php.
21
22 nginx:
23
24 location / {
25 try_files $uri $uri/ /index.php?$args;
26 }
27
28 apache (.htaccess):
29
30 FallbackResource /index.php
31
32BUILT WITH
33 php, html, minify (for css).
34
35TODO
36 - recursive descendant comment threads
37 - polls (ConstructPoll)
38 - pagination / load more
39
40CONTRIBUTING
41 see CONTRIBUTING.txt and CODE_OF_CONDUCT.txt.
42
43VERSIONING
44 none. read the git log.
45
46LICENSE
47 0bsd. see LICENSE.md.
48
49┌──────────────────────────────────────────────────────────────┐
50│ krz.sh │
51└──────────────────────────────────────────────────────────────┘