diff --git a/.gitignore b/.gitignore index 78cab4f..917e5a2 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ node_modules /artifacts keypair.json *.wasm +logo.svg diff --git a/curl_template/README.md b/curl_template/README.md index 20d362e..777e539 100644 --- a/curl_template/README.md +++ b/curl_template/README.md @@ -1,6 +1,6 @@ # Download & return URL via curl -An example repo to kick-off building services on Fluence. +An example to kick-off building services on Fluence. What it does: - exploits `mounted_binaries` to call `/usr/bin/curl` on the host OS diff --git a/url-downloader/README.md b/url-downloader/README.md new file mode 100644 index 0000000..b28a1bd --- /dev/null +++ b/url-downloader/README.md @@ -0,0 +1,14 @@ +# Download file to disk + +Example to show how to work with disk + link several .wasm modules into a service. + +# Build & deploy it +```shell +./deploy.sh +``` + +# Call it +```shell +fldist run_air -p download.air -d '{"service": "08eba00d-ff40-4e38-bbe6-ee3646498400"}' +``` + \ No newline at end of file diff --git a/url-downloader/deploy.sh b/url-downloader/deploy.sh index e46af7b..9b42425 100755 --- a/url-downloader/deploy.sh +++ b/url-downloader/deploy.sh @@ -5,7 +5,7 @@ ( cd artifacts - fldist new_service --env dev --name "url_downloader" --modules \ + fldist new_service --name "url_downloader" --modules \ curl_adapter.wasm:curl_adapter.json \ local_storage.wasm:local_storage.json \ facade.wasm:facade.json