Initial commit: party-mix-app with prefetch cache, audio preload optimizations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 12:40:22 +03:00
commit 0097fb5183
83 changed files with 11788 additions and 0 deletions

19
apps/backend/main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"log"
"github.com/toyffee/party-mix/internal/config"
"github.com/toyffee/party-mix/internal/database"
"github.com/toyffee/party-mix/internal/router"
)
func main() {
cfg := config.Load()
db := database.Connect(cfg)
r := router.New(db, cfg.JWTSecret)
log.Printf("Party Mix backend starting on :%s", cfg.Port)
if err := r.Run(":" + cfg.Port); err != nil {
log.Fatalf("server failed: %v", err)
}
}