20 lines
380 B
Go
20 lines
380 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"git.andreafazzi.eu/andrea/testhub/logger"
|
|
"git.andreafazzi.eu/andrea/testhub/store"
|
|
)
|
|
|
|
const port = "3000"
|
|
|
|
func main() {
|
|
logger.SetLevel(logger.DebugLevel)
|
|
|
|
server := NewPlayerServer(store.NewMemoryPlayerStore())
|
|
|
|
logger.Infof("The API server is listening to port %s...", port)
|
|
log.Fatal(http.ListenAndServe(":"+port, server))
|
|
}
|