Skip to content

Commit 05d6909

Browse files
authored
Merge pull request #212 from vdice/docs/templates-readmes
docs(templates): add minimal build/run docs to template READMEs
2 parents 123e877 + abe99ca commit 05d6909

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
## HTTP-JS template
22

3-
This is a simple template to get started with spin-js-sdk.
3+
This is a simple template to get started with spin-js-sdk.
4+
5+
### Build
6+
7+
```console
8+
npm install
9+
spin build
10+
```
11+
12+
### Run
13+
14+
```console
15+
spin up
16+
```
17+
18+
Or, use `spin watch` to run the app and rebuild on any changes to `package.json` or the files in `src`.
19+
20+
Use e.g. `curl -v http://127.0.0.1:3000/hello` to test the endpoint.
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
## HTTP-TS template
22

3-
This is a simple template to get started with spin-js-sdk using typescript.
3+
This is a simple template to get started with spin-js-sdk using typescript.
4+
5+
### Build
6+
7+
```console
8+
npm install
9+
spin build
10+
```
11+
12+
### Run
13+
14+
```console
15+
spin up
16+
```
17+
18+
Or, use `spin watch` to run the app and rebuild on any changes to `package.json` or the files in `src`.
19+
20+
Use e.g. `curl -v http://127.0.0.1:3000/hello` to test the endpoint.

0 commit comments

Comments
 (0)