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