21 lines
450 B
Go
21 lines
450 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/aceberg/WatchYourLAN/internal/conf"
|
|
"github.com/aceberg/WatchYourLAN/internal/db"
|
|
"github.com/aceberg/WatchYourLAN/internal/web"
|
|
)
|
|
|
|
const configPath = "/data/config"
|
|
|
|
func main() {
|
|
appConfig := conf.Get(configPath) // Get config from Defaults, Config file, Env
|
|
|
|
fmt.Println("CONF =", appConfig)
|
|
|
|
db.Create(appConfig.DbPath) // Check if DB exists. Create if not
|
|
|
|
web.Gui(appConfig) // Start web GUI
|
|
}
|