This example illustrates how to incorporate JavaScript in Delphi, call Delphi objects in a script, exchange data between the main app and a script, and use Node.js modules.
The following article summarizes an experience using SpiderMonkey JavaScript to run scripts in Delphi: Getting started with SpiderMonkey to run JavaScript in Delphi
- Download the latest stable release of the mORMot integration library
- Download the SpiderMonkey precompiled and prepared for mORMot binaries: SpiderMonkey52 DLLs
- Clone the FastMM4 repository.
- Add links to the following directories to Delphi Library Paths: "...mORMot", "...mORMot\SyNode", "...\mORMot\SQLite3", and "...FastMM4".
- Put downloaded SpiderMonkey DLLs near the app executable or add a link to these DLLs to the PATHS environment variable.
Enjoy.