Back to Forgery
Code Generator

Forge Builder

Select the extensions you need and get ready-to-run Go boilerplate. Includes both built-in Forge extensions and Forgery ecosystem packages.

0 extensions selected
my-app/cmd/app/main.go
package main

import (
    "log"

    "github.com/xraph/forge"
)

func main() {
    app := forge.New(
        forge.WithAppName("my-app"),
        forge.WithAppVersion("1.0.0"),
    )

    // Register routes
    _ = app.Router().GET("/health", func(c forge.Context) error {
        return c.JSON(200, map[string]string{
            "service": "my-app",
            "status":  "ok",
        })
    })

    if err := app.Run(); err != nil {
        log.Fatal(err)
    }
}
Getting Started

1. Download and extract the .zip

2. cd my-app

3. go mod tidy

4. forge dev