Epic

The Epic script expects pairs of URL paths and filenames and produces a C file that compiles to a website IC app. It expects one such pair per line, with a comma separating the two fields.

For example:

./epic > example.c << EOF
/,index.html
/foo,foo.html
EOF
clang --target=wasm32 -c -O3 example.c
wasm-ld --no-entry --export-dynamic --allow-undefined example.o -o example.wasm
touch example.did
echo '{"canisters":{"example":{"type":"custom","candid":"example.did","wasm":"example.wasm","build":""}}}' > dfx.json
dfx deploy --network ic

Get it from the IC!

git clone https://fxa77-fiaaa-aaaae-aaana-cai.raw.ic0.app/epic.git