Wednesday, 16 September 2020

Generating NodeJS applications based on a config file

So we have about 22-25 NodeJS applications for several different systems (hosted on AWS Lambda) which perform following 3 operations:Fetch a significantly large set of data from a source system periodically (based on AWS Cloudwatch)Transform it in a desired format (typically according to API request schemas)Pass it on to another system via various APIs or other methodsBut currently each of these applications has 85% of the code exact same.The only changes are specifically related to the source system. Like, What or how many methods/APIs are needed to fetch the complete data from source, any authentication method etc.I am given the responsibility of automating the applications generation. In that, such an application will be generated based on a config file which contains all the necessary information needed to write an application.Edit: Its not simply replacing the values from config file. The config file contains only the platform name, API endpoints, authentication method etc.My questions are –a) What path should I take to accomplish this? b) What tools, node modules would you guys suggest, to ease the process?Feel free to ask any questions.Any help is really appreciated.

Submitted September 16, 2020 at 07:25PM by pessimist007

No comments:

Post a Comment