collinenlucy.nl/server/main.go
2025-06-30 12:37:33 +02:00

24 lines
326 B
Go

package main
import (
"fmt"
"net/http"
"github.com/joho/godotenv"
_ "github.com/mattn/go-sqlite3"
)
func main() {
godotenv.Load(".env")
ntfy := SetupNtfyClient()
db := SetupDatabase()
SetupRsvpsTable(db)
SetupAuth()
hnd := &Handler{db, ntfy}
fmt.Println("handler ready")
http.ListenAndServe(":8000", hnd)
}