Skip to content
/ webawk Public

simple (mock) web server framework written in awk

License

Notifications You must be signed in to change notification settings

Syuparn/webawk

Repository files navigation

webawk

MIT License Test

simple (mock) web server framework written in awk

What's this?

Webawk is a simple JSON API server framework for awk. This helps to make dummy-response server by only awk one-line command.

$ ./webawk.sh 'GET("/names") { b["names"][1]="Taro"; res(200, b) }'
$ curl localhost:8080/names
{"names":["Taro"]}

Requirement

  • GNU awk (5.x.x+)
    • should be installed as gawk
  • jq
    • because I have not written a JSON parser yet 😏

Image

Or you can run webawk docker image.

$ docker pull ghcr.io/syuparn/webawk:0.3.0

See https://github.com/users/Syuparn/packages/container/package/webawk for detail.

Usage

See ./examples for practical examples. You can also check command options by ./webawk.sh -h.

About

simple (mock) web server framework written in awk

Resources

License

Stars

Watchers

Forks

Packages

No packages published