Contains a simple POC where primality check is done in node and via c++ addon.
-
First of all make sure you have the following dependencies ..* python 2.7 ..* gcc ..* node > 10 ..* mongodb (Run mongo local or you can provide DATABASE_URL as env parameter while running project)
-
git cloneandnpm install -
If running on server other than macosx do
npm run compile. This runsnode-gypand compiles c++ addon and saves under./build/Release/addon