initial commit

This commit is contained in:
Zoe
2024-12-03 01:36:29 -06:00
commit 8a55c1593b
11 changed files with 648 additions and 0 deletions

5
cmd/cli/main.go Normal file
View File

@@ -0,0 +1,5 @@
package main
func main() {
}

18
cmd/daemon/main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"log"
"net/http"
"github.com/juls0730/fluxd/server"
)
func main() {
fluxServer := server.NewServer()
http.HandleFunc("POST /deploy", fluxServer.DeployHandler)
http.HandleFunc("GET /apps", fluxServer.ListAppsHandler)
log.Printf("Fluxd started on http://127.0.0.1:5647")
log.Fatal(http.ListenAndServe(":5647", nil))
}