Skip to content

Commit 3c7f5f1

Browse files
committed
[chapter] chapter 6 finished (pre-review)
Signed-off-by: danbugs <[email protected]>
1 parent 0eddbae commit 3c7f5f1

File tree

12 files changed

+305
-89
lines changed

12 files changed

+305
-89
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "chapter06/smart-cms/ollama-provider"]
2+
path = chapter06/smart-cms/ollama-provider
3+
url = https://github.com/danbugs/ollama-provider.git

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,9 @@ The book is still under development, so this repository will be updated as I pro
1313
- [x] Chapter 4 (Interfacing Wasm with the Underlying System)
1414
- Part 2: Production-Grade Wasm
1515
- [x] Chapter 5 (Applications of Wasm from machine learning to databases)
16-
- [ ] Chapter 6 (Creating Production-Grade Wasm Applications)
16+
- [x] Chapter 6 (Creating Production-Grade Wasm Applications)
1717
- Part 3: Wasm on the Cloud and the Edge
1818
- [ ] Chapter 7 (Introducing Wasm Containers with Docker)
1919
- [ ] Chapter 8 (Scalability for Wasm with Kubernetes)
2020
- [ ] Chapter 9 (Wasm for Edge Devices and IoT)
2121

22-
## Platform Used
23-
24-
Unless specified, all examples in this repository were run on:
25-
```bash
26-
HP ENVY Laptop 15-ep1xxx
27-
Microsoft Windows 11 Pro
28-
x64-based PC
29-
11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
30-
Intel(R) UHD Graphics 1073741824 / NVIDIA GeForce RTX 3050 Laptop GPU 4293918720
31-
8 cores
32-
16GB RAM
33-
```

chapter06/smart-cms/Cargo.lock

Lines changed: 161 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chapter06/smart-cms/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "http-hello-world"
2+
name = "smart-cms"
33
edition = "2021"
44
version = "0.1.0"
55

@@ -10,3 +10,4 @@ crate-type = ["cdylib"]
1010

1111
[dependencies]
1212
wasmcloud-component = "0.2.0"
13+
wit-bindgen = "0.36.0"

chapter06/smart-cms/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# `smart-cms`
22

3-
How to run:
3+
How to run backend:
44

55
```shell
66
wash up --multi-local --label zone=us-east-1 -d
77
wash up --multi-local --label zone=us-west-1 -d
88
wash build
99
wash app deploy ./wadm.yaml
10-
```
10+
```
11+
12+
How to run the frontend:
13+
14+
```shell
15+
http-server ./index.html
16+
```
17+

0 commit comments

Comments
 (0)