pomf clone in zig. experimenting with the web
Go to file
Luna 2a1b48fe86 add 'zig build test' command 2021-04-12 23:19:06 -03:00
src add mimetype-based extensions 2021-04-10 16:23:25 -03:00
.gitignore add image uploads 2021-04-09 18:30:32 -03:00
README.md add basic usage and todo 2021-04-09 18:39:00 -03:00
build.zig add 'zig build test' command 2021-04-12 23:19:06 -03:00
zig.mod add mimetype-based extensions 2021-04-10 16:23:25 -03:00

README.md

yet-another-pomf-clone

how build

get zigmod.

git clone ...
cd yet-another-pomf-clone
zigmod fetch
zig build
./zig-cache/bin/yet-another-pomf-clone

happy webscale

todo

  • multipart parsing (this is going to be fun)
  • env vars for configuration
  • handle 404 on fetch

how use

do the thing

curl -F "test=@/path/to/file/lol" 'http://localhost:8080/api/upload'