Basic NodeJS application creation and deploy to Adobe IO runtime
Hello team,
I am exploring Adobe IO runtime. I tried to create a simple rest API (as mentioned below) and I am able to hit the runtime using browser.
https://adobeioruntime.net/api/v1/web/12345-pocservice-dev/default/test?name=ABC
// this is saved in a file named first-function.js
function main(params) {
var nm = params.name || 'stranger';
return {
statusCode: 200,
body: {
payload: 'Hello ' + nm
}
}
}
exports.main = main;
Now, I need to write some NodeJS utility, which will have folders like: src, tests, config etc.
Now, sure about the way I need to create? Help will be much appreciated here.