-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from SubstrateLabs/hwwu/toolchain-update
- Loading branch information
Showing
12 changed files
with
102 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Substrate Example Templates in Typescript | ||
|
||
This is a Substrate example template written in Typescript. To run this example, | ||
|
||
```bash | ||
# Set your API key as an environment variable. | ||
# Get one here https://www.substrate.run/dashboard/keys if this is your first time. | ||
export SUBSTRATE_API_KEY=<your Substrate API key> | ||
|
||
# Navigate to the python example directory. | ||
cd typescript | ||
``` | ||
|
||
To run the example with tsx (default), run the following. | ||
|
||
```bash | ||
npx tsx ./example.ts | ||
|
||
# Or you can use the package.json scripts | ||
npm run start | ||
``` | ||
|
||
To run the example with Deno, uncomment the Deno sections in `example.ts` and | ||
run the following. | ||
|
||
```bash | ||
deno run ./example.ts | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.