init
This commit is contained in:
19
cmd/server/main.go
Normal file
19
cmd/server/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"pokeval/api"
|
||||
"pokeval/config"
|
||||
"pokeval/db"
|
||||
)
|
||||
|
||||
func main() {
|
||||
config.LoadEnv()
|
||||
db.InitDB()
|
||||
|
||||
router := api.NewRouter()
|
||||
fmt.Println("Server läuft auf Port 8080...")
|
||||
log.Fatal(http.ListenAndServe(":8080", router))
|
||||
}
|
Reference in New Issue
Block a user