Rename project from imc-vibe to imc

- Binary name: imc-vibe -> imc
- Go module: github.com/imc-vibe/backend -> github.com/imc/backend
- JWT issuer: imc-vibe -> imc
- UI labels: IMC Vibe -> IMC
- Update all imports and comments
This commit is contained in:
Christoph Haas 2026-03-24 23:42:37 +01:00
parent a4c6b04b37
commit ff52be8adf
19 changed files with 52 additions and 40 deletions

View file

@ -1,4 +1,4 @@
// Package main is the entry point for the imc-vibe mail server admin application.
// Package main is the entry point for the IMC mail server admin application.
// This single binary contains both the Go backend API and the embedded SvelteKit frontend.
package main
@ -11,11 +11,11 @@ import (
"os" // OS-level operations like reading command-line args
"strings" // string manipulation utilities
"github.com/gin-gonic/gin" // web framework
"github.com/imc-vibe/backend/internal/api" // HTTP API routing and handlers
"github.com/imc-vibe/backend/internal/auth" // password hashing
"github.com/imc-vibe/backend/internal/config" // configuration loading
"github.com/imc-vibe/backend/internal/db" // database connection and operations
"github.com/gin-gonic/gin" // web framework
"github.com/imc/backend/internal/api" // HTTP API routing and handlers
"github.com/imc/backend/internal/auth" // password hashing
"github.com/imc/backend/internal/config" // configuration loading
"github.com/imc/backend/internal/db" // database connection and operations
)
// main is the entry point of the application.
@ -24,7 +24,7 @@ import (
func main() {
// Parse command-line flags.
// Flags are optional arguments passed after the program name.
// Example: ./imc-vibe --bind=0.0.0.0 --port=8080
// Example: ./imc --bind=0.0.0.0 --port=8080
// --bind: The IP address the server should listen on.
// 0.0.0.0 means listen on all network interfaces (accessible from other machines).
@ -69,14 +69,14 @@ func main() {
// Connect to the database (MariaDB/MySQL).
// The database stores both ISPmail data (virtual_users, virtual_domains, etc.)
// and imc-vibe's own data (imc_users, imc_users2domains, etc.).
// and IMC's own data (imc_users, imc_users2domains, etc.).
database, err := db.Connect(cfg)
if err != nil {
log.Fatalf("Failed to connect to database: %v", err) // Fatal = print and exit
}
// Create database tables if they don't exist.
// This only creates imc-vibe's own tables, not the ISPmail tables.
// This only creates IMC's own tables, not the ISPmail tables.
if err := database.InitSchema(); err != nil {
log.Printf("Warning: Could not initialize schema: %v", err) // Non-fatal = continue
}