DataLogue-Backend/main.go

21 lines
379 B
Go
Raw Normal View History

2023-12-04 14:32:48 +01:00
package main
import (
2023-12-04 15:09:54 +01:00
"git.cmdq.io/meirjann/DataLogue-Backend/api"
"git.cmdq.io/meirjann/DataLogue-Backend/configs"
"git.cmdq.io/meirjann/DataLogue-Backend/db"
2023-12-04 14:32:48 +01:00
"git.cmdq.io/meirjann/DataLogue-Backend/log"
)
var logger = log.New("startup")
func main() {
2023-12-04 15:09:54 +01:00
logger.Println("starting...")
2023-12-04 14:32:48 +01:00
// set all configs
2023-12-04 15:09:54 +01:00
configs.Init()
2023-12-04 14:32:48 +01:00
// init db
2023-12-04 15:09:54 +01:00
db.Init()
2023-12-04 14:32:48 +01:00
// start api
2023-12-04 15:09:54 +01:00
api.Serve()
2023-12-04 14:32:48 +01:00
}