A Gin HTTP service in Go, ready to deploy on Light Cloud.
- Gin 1.12
- JSON responses with Gin's router and middleware
- Compiles to a single static binary
- Listens on
$PORT, defaulting to 8080
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Welcome message |
# Run the server
go run main.go
# Build a binary
go build -o serverThe API will be available at http://localhost:8080
Visit console.light-cloud.com and sign up with GitHub or Google.
- Click "New Application" in the dashboard
- Select "Container" as the deployment type
- Choose "Gin" as the framework
- Option A: Fork this repository and connect it via GitHub
- Option B: Push this code to your own GitHub repository and connect it
Light Cloud will auto-detect your settings, but you can verify:
| Setting | Value |
|---|---|
| Port | 8080 |
| Start Command | ./server |
Click "Deploy" and your API will be live in minutes!
Your API will be available at https://your-app.light-cloud.io
Website • Documentation • Console
Made with ☁️ by Light Cloud
