frontend and backend base setup

This commit is contained in:
2024-11-13 16:43:32 +01:00
parent 338adc3b6f
commit 0db2a0c647
56 changed files with 9427 additions and 0 deletions
@@ -0,0 +1,22 @@
package http
import (
"actatempus_backend/internal/infrastructure/persistence/config"
"fmt"
"net/http"
)
type Server struct {
cfg *config.Config
}
func NewServer(cfg *config.Config) *Server {
return &Server{cfg: cfg}
}
func (s *Server) Start() error {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Welcome to ActaTempus!")
})
return http.ListenAndServe(fmt.Sprintf(":%s", s.cfg.Port), nil)
}