add README - twitch-go - twitch.tv web application in Go
(HTM) git clone git://git.codemadness.org/twitch-go
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c081365da1b9de80863aee1a25676df90ff206ea
(DIR) parent 9626b1467f8611871ec4b0f204006c1b9436ce88
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 25 Jul 2015 14:27:35 +0200
add README
Diffstat:
A README | 38 +++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -0,0 +1,38 @@
+Twitch-go - twitch.tv web application in Go
+===========================================
+
+This is a web application written in Go using the Twitch.tv API to view streams.
+
+The web interface doesn't use any javascript or cookies and is pretty simple.
+It is even usable with the links browser.
+
+It uses some non-public API functionality to get a view "token" and playlist
+so you can view streams with most video players. For example the excellent
+mpv: http://mpv.io/ .
+
+For me it was one of the first applications I wrote to learn the language Go.
+
+See the LICENSE file for license information, feel free to contact me about
+licensing or to report bugs at hiltjo AT codemadness DOT org .
+
+
+Install as OpenBSD daemon:
+--------------------------
+
+- Make a user "_twitch", install the twitch binary to /usr/local/sbin.
+- Make a file /etc/rc.d/twitch:
+
+ #!/bin/sh
+
+ daemon="/usr/local/sbin/twitch-go"
+ daemon_flags="-t unix -d /var/www/domains/twitch.codemadness.org/data -l /var/www/domains/twitch.codemadness.org/twitch.sock -m 0777"
+ daemon_user="_twitch"
+
+ . /etc/rc.d/rc.subr
+
+ pexp="/usr/local/sbin/twitch-go"
+ rc_reload=NO
+ rc_bg=YES
+ rc_cmd $1
+
+- Start the daemon: /etc/rc.d/twitch start