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.
Solved! Go to Solution.
Views
Replies
Total Likes
You can check smaple apps at https://developer.adobe.com/app-builder/docs/resources/sample_apps/ , if that helps
You can check smaple apps at https://developer.adobe.com/app-builder/docs/resources/sample_apps/ , if that helps
Thanks a lot @arunpatidar for your quick help
Now, I have started referring to headless app
https://github.com/AdobeDocs/adobeio-codelabs-barcode
New to NodeJS, Adobe IO runtime. Is there any documents related to best practices while setting up the project for the headless app in Adobe IO runtime? example: Nodejs version, folder, file structure etc ...
In the file: manifest.yml, I can see the sttement: runtime: 'nodejs:14'
Is this OK? Since, latest version is 22+. Also, in the runtime I can see NodeJS version: 18
Thanks
Views
Replies
Total Likes
I think you can use NodeJS Version 18-20
You can check https://developer.adobe.com/app-builder/docs/getting_started/
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies