example echo server
1.0.0
เซิร์ฟเวอร์ Echo เล็ก ๆ ที่เขียนด้วย Gleam! มันจะตอบกลับกับร่างกายที่โพสต์ไป /echo
ที่สำคัญกว่านั้นยังเป็นตัวอย่างเว็บแอปพลิเคชันที่เขียนด้วยภาษาการเขียนโปรแกรม Gleam!
# Start the web server locally
gleam run
# Send a request to the server
curl -X POST -d ' Hello, Gleam! ' http://localhost:3000/echo