diff --git a/fluence-js/2_basics.md b/fluence-js/2_basics.md index 7c66b02..e024264 100644 --- a/fluence-js/2_basics.md +++ b/fluence-js/2_basics.md @@ -191,4 +191,4 @@ The code from this section is available in on [github](https://github.com/fluenc ## Running Fluence application in different environments -Fluence JS runs instantiates Aqua Virtual Machine (AVM) from wasm file and runs it in the background thread. Different mechanism are used depending on the JS environment. In nodejs worker threads are for background execution and was file is read from the filesystem. In browser-based environments web workers are used and the wasm file is being loaded from server hosting the application. Next two sections cover how to configure a fluence application depending on the environment. +Fluence JS instantiates Aqua Virtual Machine (AVM) from wasm file and runs it in the background thread. Different mechanism are used depending on the JS environment. In nodejs worker threads are used for background execution and wasm file is read from the filesystem. In browser-based environments web workers are used and the wasm file is being loaded from server hosting the application. Next two sections cover how to configure a fluence application depending on the environment. diff --git a/fluence-js/4_run_in_browser-1.md b/fluence-js/4_run_in_browser-1.md index 4c44546..a1dc68a 100644 --- a/fluence-js/4_run_in_browser-1.md +++ b/fluence-js/4_run_in_browser-1.md @@ -9,7 +9,7 @@ To run application in browser you need to configure the server which hosts the a - `avm.wasm` is the execution file of AquaVM. The file is located in `@fluencelabs/avm` package - `runnerScript.web.js` is the web worker script responsible for running AVM in background. The file is located in `@fluencelabs/avm-runner-background` package -Fluence JS provides a utility script named `copy-avm-public` which locates described above files and copies them into the specified directory. For example if static files are served from the `public` directory you can run `copy-avm-public public` to copy files needed to run Fluence. It is recommended to put the names into `.gitignore` and run the script on every build to prevent possible inconsistencies with file versions. This can be done using npm's `postinstall` script: +Fluence JS provides a utility script named `copy-avm-public` which locates described above files and copies them into the specified directory. For example if static files are served from the `public` directory you can run `copy-avm-public public` to copy files needed to run Fluence. It is recommended to put their names into `.gitignore` and run the script on every build to prevent possible inconsistencies with file versions. This can be done using npm's `postinstall` script: ``` ...