+frontend empty
This commit is contained in:
Miki 2023-12-05 13:48:13 +01:00
parent 54a47c8a95
commit b1745ede2e
59 changed files with 1197 additions and 13 deletions

21
backend/main.go Normal file
View file

@ -0,0 +1,21 @@
package main
import (
"os"
)
func main() {
var port string
Db := InitDb(os.Getenv("DB"))
webapp := InitHttp(Db)
if p := os.Getenv("PORT"); p == "" {
port = "8080"
} else {
port = p
}
webapp.Engine.Run(":" + port)
}