aboutsummaryrefslogtreecommitdiff
path: root/server/main.go
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-18 15:34:37 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-04-18 15:34:37 +0530
commit93dd72920e5a72c684f53071f4ab1972bf1e878c (patch)
treea9d32a0ff8a8237003caa7fbb4dd00908a669978 /server/main.go
parentdafb3638bbd1184f15ad9b7637178ea6ce510d90 (diff)
created a server to just serve the static app
Diffstat (limited to 'server/main.go')
-rw-r--r--server/main.go15
1 files changed, 15 insertions, 0 deletions
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")
+}