Added backend

This commit is contained in:
2022-02-06 22:51:36 +01:00
parent 77599e26f8
commit 431cadaeea
35 changed files with 2422 additions and 0 deletions

28
backend/config/config.go Normal file
View File

@@ -0,0 +1,28 @@
package config
import (
"github.com/joho/godotenv"
"os"
)
var (
ServerPort string
Address string
SubPath string
DatabaseFile string
FrontendDir string
)
func init() {
godotenv.Load()
ServerPort = os.Getenv("SERVER_PORT")
Address = os.Getenv("ADDRESS")
SubPath = os.Getenv("SUBPATH")
DatabaseFile = os.Getenv("DATABASE_FILE")
FrontendDir = os.Getenv("FRONTEND_DIR")
}