mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 09:27:08 +00:00
simple-json-server
- A simple HTTP JSON server implemented in Go and compiled with tinygo.
Example
Request
curl --location --request POST 'https://simple-json-server.syumai.workers.dev/hello' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "syumai"
}'
Response
{
"message": "Hello, syumai!"
}
Development
Requirements
This project requires these tools to be installed globally.
- wrangler
- tinygo
Commands
make dev # run dev server
make build # build Go Wasm binary
make deploy # deploy worker