20 lines
270 B
Go
20 lines
270 B
Go
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))
|
|
}
|