Files
LazyPM/cmd/web/main.go
2026-02-12 19:59:05 +01:00

27 lines
496 B
Go

package main
import (
"context"
"fmt"
"os"
"github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/web"
)
func main() {
web := web.NewWeb()
config := service.Config{
WebAddress: "localhost:8080",
BeadsDBPath: "./.pm/db.db",
IssuePrefix: "pm",
StatisticsStoragePath: "./.pm/stats.json",
}
if err := web.Run(context.Background(), config); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}