Skip to content

fuzzy-coder/node-native-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Contains a simple POC where comparison is done with regards to response time when checking primality of a number in node and via c++ addon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors