diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..529a224 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/status diff --git a/main.go b/main.go index f18e2ab..f97335f 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "log" + "fmt" "net/http" "git.exozy.me/exozyme/status/proto" @@ -39,5 +40,7 @@ func rootPage(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/", rootPage) + + fmt.Printf("Listening on http://%v/\n", "localhost:3333") log.Fatal(http.ListenAndServe(":3333", nil)) } diff --git a/readme.md b/readme.md index 48992aa..751be60 100644 --- a/readme.md +++ b/readme.md @@ -2,16 +2,18 @@ Tech stack -- [ ] HTTP Server - std.http -- [ ] Templating - {{mustache}} +- [x] HTTP Server - `net/http` +- [x] Templating - {{mustache}} +- [ ] spawn with dinit +- [ ] Auto deploy with CI Check online methods -- [ ] TCP Connect -- [ ] HTTP 2xx +- [-] TCP Connect (not integrated) +- [-] HTTP 2xx (not integrated) Services -- [ ] HTTP page -- [ ] Matrix notification +- [x] HTTP page +- [-] Matrix notification (not integrated)