HTTP Hello

A basic HTTP server demonstrating the serve() function with simple routing.

Features Used

  • http - Enables the serve() function

Endpoints

PathDescription
GET /Returns greeting message
GET /healthHealth check endpoint
GET /aboutReturns version info

Local Development

Run without installing tish (from this directory; tish repo is ../..):

# Run with interpreter (requires http feature)
cargo run -p tishlang--manifest-path ../../Cargo.toml --release --features http -- run src/main.tish --features http
 
# Then visit: http://localhost:3000/

Or with tish installed: tish run src/main.tish --features http

Deploy

Deploy with Zectre: zectre deploy --wait from this directory. See Deploy Overview for details.

Improve this documentation