From 93dd72920e5a72c684f53071f4ab1972bf1e878c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 18 Apr 2021 15:34:37 +0530 Subject: created a server to just serve the static app --- server/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 server/main.go (limited to 'server/main.go') diff --git a/server/main.go b/server/main.go new file mode 100644 index 0000000..b0d3f9d --- /dev/null +++ b/server/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "github.com/gin-gonic/gin" + // "net/http" +) + +func main() { + myRouter := gin.New() + // myRouter.Use(gin.Logger()) + + myRouter.Static("/app", "./app") + + myRouter.Run(":8080") +} -- cgit v1.2.3