init
This commit is contained in:
21
back/cmd/main.go
Normal file
21
back/cmd/main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user