..
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00
2023-02-26 11:25:53 +09:00

d1-blog-server

  • A simple Blog server implemented in Go and compiled with tinygo.
  • This example is using Cloudflare D1.

WIP

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
  • easyjson
    • go install github.com/mailru/easyjson/...@latest

Commands

make dev     # run dev server
make build   # build Go Wasm binary
make publish # publish worker

Author

syumai

License

MIT