Skip to content

Commit

Permalink
Merge pull request #244 from karthik2804/update_to_fetch_event
Browse files Browse the repository at this point in the history
update SDK to use fetchEvent
  • Loading branch information
karthik2804 authored Jun 17, 2024
2 parents 09afb3a + 86eff5b commit e7d67ab
Show file tree
Hide file tree
Showing 19 changed files with 823 additions and 242 deletions.
37 changes: 37 additions & 0 deletions README.md
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
```
1 change: 1 addition & 0 deletions bin/wit/spin.wit
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit e7d67ab

Please sign in to comment.