Overview
There is no wonder that cryptocurrency and blockchain have registered such an impact on various industries in a very short period of time. Their uniqueness, its usability, and its effectiveness will definitely change the perception of industries in handling monetary terms and redefine security through blockchain. In order to carry forward your blockchain project successfully, you need to raise funds which mandatory for actual progress and create an original trust among the community members. This has to be done through ICO, where it is the legal and only way through which you can generate funds for your blockchain project.
As a part of the fundraising process, you need to promote your ICO among the blockchain and cryptocurrency community through various approaches. One among them is through email marketing which is considered as an effective approach since the rise of ICO. This post will take you to the tour on some of the simplest and effective methods to promote your ICO through email marketing strategy. As a best ICO email marketing company, iStudio Technologies helps to promote your ICO in a most effective way using email marketing campaigns and drive in potential investors.
Journey of ICO
Tools integrated for creating native extensions
a) Binding.GYP File
This specific file demands us to specify the need to compile the native extension. The most important thing to be noticed here is that it is highly mandatory to give proper justification for the files that are compiled here and the final binary which is been called in the functionality. This one has a JSON like structure in it and the keys to get this highly configured by its sources and target as well.
b) NODE-GYP
This one is basically a tool that helps us to get compiled with the native extensions. This tool is implemented in Node.js which is been packaged with the npm, so we can just run npm, install it, and then compile it using our native extensions. While running the npm installation, it will help by detecting the binding.gyp file gets included in the root folder and starts to get compiled. Moreover, it allows us to release or debug builds. This will yield the result of binary files get combined with the specific .node extensions that will be created within the release or debug folder, based on the way it got configured.
c) Bindings
Bindings are a node.js package that allows us to export the native extensions of node.js. It takes the charge of searching in a built or release folder for development purpose.
d) N-API
e) Node ADDON API
Taking advantage of the language used this particular module provides us the implementation of C++ for N-API.
Step1: Native Extension World
To start with the native extension world we can just use the example of a simple demo program here. There is no intention of overloading the code with extra logic in order to focus on the minimum necessary code.
Here we can start the implementation through initializing the npm where the dependency factors are installed:
npm init
Time to install our dependencies
npm i node-addon-api bindings
Parts of the file
NODE_API_MODULE (Line14):
The first argument is the native extension name and the second argument is the name of the function which initializes the extension.
Init:
SayHi:
This particular function is something which gets executed once the native extensions from JavaScript are invoked.
Other additional steps
- NAPI
- Node-addon-api
- Nan (Native abstract for node.js)
Things existed before in N-API
It is very important to know about the context and history of native extensions as it will be very helpful to give access to a lot of documentation and examples as well. The basic motto is to replace the NAN with N-API, for that reason we need turn back and have a look at NAN. As a C++ library NAN delivers us v8 abstraction, but at the same time, it won’t allow to abstract ourselves the v8. While releasing NodeJS it tends to undergo v8 related changes which can even break the native extension. Usage if NAN is considered to be a remedy to avoid this problem.