What is this? Single local endpoint server Installation npm i local_endpoint_server --save Then... create an index.js file in the same folder where you have just install library. import library as shown below const local_server = require('local_endpoint_server') local_server.start() Test node index.js everytime you call with promotional right code, this file will be changed fileIn.json in order to expire the promotional code