# Configure build and start for Echo

## Summary
Build and start for a Echo app on Ample. Verified on Echo: the app built and started with the documented commands and answered on its public HTTPS URL. Build and start: CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build).

## Prerequisites
- A Echo project (CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build))
- An Ample account token with servers:write

## Tested Configuration
- **Template**: ubuntu-24.04  
- **Runtime**: go  
- **Size**: s-1vcpu-1gb  
- **Build Command**: CGO_ENABLED=0 go build -o app ./...  
- **Start Command**: ./app

## Workflow Steps
1. **Build and start**  
   CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build); the server must bind 0.0.0.0 on PORT.
2. **Deploy**  
   Run the synchronous deploy once and read the result.  
   **Command**: ample deploy . --name  --public
3. **Verify**  
   Fetch the live URL on the example; on failure read the build and runtime logs.  
   **Command**: ample logs  --kind build

## Success Checks
- **Description**: app responds on its public URL  
  **Kind**: http_get  
  **Path**: /  
  **Expect**: ample canary echo patterns

## Limitations
- Verified on the ubuntu-24.04 template at s-1vcpu-1gb; other sizes and Echo major versions are not verified.
- Region, compliance attestations and request-duration limits are unknown and not claimed.

## Cost Estimate
- **Currency**: USD  
- **Monthly Amount**: 5.0  
- **Basis**: size prices from pricing.toml (loaded by the API) at build revision 1ac5595375130d45290090e82ed0f554ccd45405-dirty  
- **Components**:  
  - **Name**: app server  
    - **Size**: s-1vcpu-1gb  
    - **Quantity**: 1.0  
    - **Monthly Amount**: 5.0  
- **Note**: Always-on monthly price of the tested sizes; apps auto-pause when idle. Buckets are allocation-priced per quota and not included.

## Evidence Summary
- **Kind**: canary_run  
  **Summary**: Echo pattern fixture deployed on Ample (CGO_ENABLED=0 go build -o app ./... then ./app on the ubuntu-24.04 template (go.sum committed for a reproducible build)); for this guide: the app built and started with the documented commands and answered on its public HTTPS URL.  
  **Observed At**: 2026-09-21T02:34:39Z  
  **Implementation Revision**: 1d28ae0-dirty (CLI 0.1.21)  
  **Expires At**: 2027-03-20T02:34:39Z  
  **Scope**:  
    - **Checks**: []  
    - **Template**: ubuntu-24.04

## Formats
- **HTML**: [HTML Version](/content/guides/echo/build-and-start/index.html)  
- **Markdown**: [Markdown Version](/content/guides/echo/build-and-start.md)  
- **JSON**: [JSON Version](https://api.ample.computer/v1/catalog/recipes/page%3Aguides%3Aecho%3Abuild-and-start)

## Next Actions
- **Browse the catalog index**  
  **Operation**: GET /v1/catalog
- **Search published recipes by intent, stack and constraints**  
  **Operation**: POST /v1/catalog/search  
  **Body**: {"limit":5,"query":"Configure build and start for Echo"}
- **Prepare a side-effect-free deployment plan for an authorized project**  
  **Operation**: POST /v1/catalog/plan  
  **Body**: {"inputs":{},"projectId":"","recipeId":"page:guides:echo:build-and-start","recipeRevision":"r1"}
- **Read the existing agent authentication setup**  
  **Operation**: GET /mcp/setup
- **Browse Echo**  
  **Operation**: GET /v1/catalog/nodes/stack%3Aframework-echo
- **Browse Configure deployment**  
  **Operation**: GET /v1/catalog/nodes/intent%3Aconfigure-deployment
- **Browse Public web service**  
  **Operation**: GET /v1/catalog/nodes/pattern%3Apublic-web-service
