-
Notifications
You must be signed in to change notification settings - Fork 18
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 #244 from karthik2804/update_to_fetch_event
update SDK to use fetchEvent
- Loading branch information
Showing
19 changed files
with
823 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Spin JS SDK | ||
|
||
This is an SDK for Javascript and Typescript based on [ComponentizeJS](https://github.com/bytecodealliance/ComponentizeJS). | ||
|
||
|
||
## Installing the templates | ||
|
||
[Spin](https://github.com/fermyon/spin) is a prerequisite. | ||
|
||
The templates can be installed with the following command: | ||
|
||
```bash | ||
spin plugin install --update --git https://github.com/fermyon/spin-js-sdk --branch feat/sdk-v2 | ||
``` | ||
|
||
## Creating and building a new app | ||
|
||
```bash | ||
spin new -t http-ts hello-world -a | ||
cd hello-world | ||
npm install | ||
spin buiild | ||
``` | ||
|
||
## Running the app | ||
|
||
```bash | ||
spin up | ||
``` | ||
|
||
## Note: Installing the package | ||
|
||
Currently pre-release versions are published on NPM and can be installed using the following command: | ||
|
||
```bash | ||
npm install @fermyon/spin-sdk@next | ||
``` |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ package fermyon:[email protected]; | |
|
||
world spin-imports { | ||
import wasi:http/outgoing-handler@0.2.0; | ||
include wasi:cli/imports@0.2.0; | ||
import llm; | ||
import redis; | ||
import postgres; | ||
|
Oops, something went wrong.