September 2018
Intermediate to advanced
328 pages
9h 10m
English
The project reuses some of the code from the application we built in Chapter 7, Creating an Application from Scratch (Cook the Books) to demonstrate how Node.js can be used with WebAssembly. The code for this section is located in the /chapter-09-node/server-example folder in the learn-webassembly repository. We're going to review portions of the application directly applicable to Node.js. The following structure represents the file structure for the project:
├── /lib│ └── main.c├── /src| ├── Transaction.js| ├── /assets| │ ├── db.json| │ ├── main.wasm| │ └── memory.wasm| ├── assign-routes.js| ├── index.js| └── load-assets.js├── package.json├── package-lock.json└── requests.js
With regard to dependencies, the application ...
Read now
Unlock full access