LogoPly
Getting started

Installation

Install Ply from the module proxy or scaffold a project

Installation

Ply can be added to an existing Go module or scaffolded with the CLI.

System requirements

ComponentMinimum version
Go1.26
Git2.30 or newer
OSLinux, macOS, Windows
RAM512 MB for CLI usage
TerminalBash, Zsh or PowerShell

Go 1.26 or newer is required. fasthttp v1.77 sets the module's go directive to 1.26.0.

Install with the CLI

npx create-ply@latest my-app

See the CLI reference for details.

Manual installation

Create a project directory

mkdir my-project

Enter the directory

cd my-project

Initialize the Go module

go mod init github.com/yourusername/my-project

Replace github.com/yourusername/my-project with your module path.

Install Ply

go get github.com/Dziqha/ply

Create main.go

package main

import (
	"github.com/Dziqha/ply"
	"github.com/Dziqha/ply/core"
)

func main() {
	app := ply.New()

	app.Get("/", func(c *core.Context) {
		c.Text(200, "Hello from Ply")
	})

	app.RunServer(":8080")
}

Run the application

go run main.go

The server listens on http://localhost:8080.