Setting up the project
WebAssembly hasn't been around long enough to have established best practices with regard to folder structure, file naming conventions, and so on. If you were to search for best practices for C/C++ or JavaScript projects, you'd encounter a great deal of conflicting advice and strongly held opinions. With that in mind, let's spend this section setting up our project with the required configuration files.
The code for this project is located in the /chapter-07-cook-the-books
folder in the learn-webassembly
repository. You must have this code available when we get to the JavaScript portion of the application. I won't be providing the source code for all of the Vue components in the book, so you need to copy them from the repository.
Configuring for Node.js
In the interest of keeping the application as simple as possible, we'll avoid a build/bundling tool like Webpack or Rollup.js. This allows us to cut down on the number of required dependencies and ensures that any issues...