Skip to content

Commit

Permalink
Merge pull request #1582 from demergent-labs/http_functionality
Browse files Browse the repository at this point in the history
Http functionality
  • Loading branch information
lastmjs authored Jan 26, 2024
2 parents 28d1e0b + 9398ff6 commit ad93ee8
Show file tree
Hide file tree
Showing 30 changed files with 3,721 additions and 52 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
"examples/cycles",
"examples/date",
"examples/ethereum_json_rpc",
"examples/express",
"examples/func_types",
"examples/guard_functions",
"examples/heartbeat",
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions contributing/wasmedge_quickjs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To develop locally you will need to do the following:

1. Set the `AZLE_WASMEDGE_QUICKJS_DIR` environment variable on deploy or test to the location of your locally cloned `wasmedge-quickjs`.

2. Change the `wasmedge_quickjs` dependency in `azle/rust/canister/Cargo.toml` to the location of your locally cloned `wasmedge-quickjs`.

3. When you are ready to commit your changes, make sure to update `azle/install_rust_dependencies.sh` with the new git commit hash of the `wasmedge-quickjs` repository, and delete the `wasmedge-quickjs` directory in `~/.config/azle/[version]`.
3 changes: 3 additions & 0 deletions examples/express/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.azle
.dfx
node_modules
12 changes: 12 additions & 0 deletions examples/express/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"canisters": {
"express": {
"type": "custom",
"main": "src/backend/index.ts",
"candid": "src/backend/index.did",
"build": "npx azle express",
"wasm": ".azle/express/express.wasm",
"gzip": true
}
}
}
Loading

0 comments on commit ad93ee8

Please sign in to comment.