This commit is contained in:
Hadi
2025-09-24 17:20:03 +02:00
commit b9fbed9a54
83 changed files with 6241 additions and 0 deletions

21
back/cmd/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"fmt"
"strconv"
"github.com/anotherhadi/eleakxir/backend/api"
"github.com/anotherhadi/eleakxir/backend/server"
)
func main() {
server := server.NewServer()
fmt.Println("Starting the server.")
api.Init(server)
err := server.Router.Run(":" + strconv.Itoa(server.Settings.Port))
if err != nil {
panic(err)
}
}