Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 712 Bytes

File metadata and controls

16 lines (12 loc) · 712 Bytes

node-assignment

Contains a simple POC where primality check is done in node and via c++ addon.

requirements

  • 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 clone and npm install

  • If running on server other than macosx do npm run compile. This runs node-gyp and compiles c++ addon and saves under ./build/Release/addon

npm run start to start local server at port 3000

For API reference you can import the following postman collection https://gist.github.com/fuzzy-coder/e081a1804f45d75e037a15362559d94e