mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans, usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0. Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
25 lines
436 B
Go
25 lines
436 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/zap-proto/zip"
|
|
|
|
"github.com/hanzoai/commerce/util/default_"
|
|
)
|
|
|
|
func main() {
|
|
app := zip.New(zip.Config{AppName: "commerce-default", DisableStartupMessage: true})
|
|
default_.Init(app)
|
|
|
|
// Get port from environment or default to 8080
|
|
port := os.Getenv("PORT")
|
|
if port == "" {
|
|
port = "8080"
|
|
}
|
|
|
|
log.Printf("Starting server on :%s", port)
|
|
log.Fatal(app.Listen("http://:" + port))
|
|
}
|