20 lines
339 B
Go
20 lines
339 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"templ-test/client"
|
||
|
"templ-test/handlers"
|
||
|
"templ-test/services"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
cfg := services.NewEnvConfig()
|
||
|
|
||
|
// connect to api server
|
||
|
apiClient := client.New(cfg.ApiServerUri)
|
||
|
handler := handlers.NewHandlerClient(apiClient, cfg)
|
||
|
|
||
|
fmt.Println("Listening on :3000")
|
||
|
handler.Server.Start(":3000")
|
||
|
}
|