Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greet Playground

This hosts the playground server for Greet - a lightweight Go library to test greet/ping/handshake process in TCP, UDP and other popular protocols

Local Development

go run ./main.go

The server starts on http://localhost:3000 by default. Set the PORT environment variable to change it:

PORT=8080 go run ./cmd/server

Deploy to Vercel

This project is configured for deployment via the Vercel Go runtime. The Go Framework Preset detects the cmd/server/main.go entrypoint and the root go.mod file automatically.

Prerequisites

Deploy with Vercel CLI

  1. Login to Vercel:

    vercel login
  2. Deploy (from the project root):

    vercel
  3. To deploy to production:

    vercel --prod

Deploy with Git Integration

  1. Push this repository to GitHub, GitLab, or Bitbucket.
  2. Import the project on vercel.com/new.
  3. Vercel will automatically detect the Go framework preset — no additional configuration is needed.
  4. Every push to the default branch triggers a production deployment; pull requests get preview deployments.

Configuration

The vercel.json file sets the framework preset to go:

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "framework": "go"
}

Vercel reads the Go version from the go directive in go.mod. The server binary is built and executed on the Vercel Edge Network, listening on the PORT environment variable (set automatically by Vercel).

About

A playground to try Greet

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages