<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Create a node module and  call it from web module in Cloud Foundry in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266389#M4594736</link>
    <description>&lt;P&gt;Can you please be more specific? It sounds like you want to create a node module as a runtime artifact which isn't possible. All modules are design time artefacts that need to be published via the CLI or the cockpit.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 08:30:42 GMT</pubDate>
    <dc:creator>mariusobert</dc:creator>
    <dc:date>2020-09-15T08:30:42Z</dc:date>
    <item>
      <title>Create a node module and  call it from web module in Cloud Foundry</title>
      <link>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaq-p/12266388</link>
      <description>&lt;P&gt;Please help me with the steps to create a mta application using nodejs module without enabling XSJS compact-ability in SAP XSA or Cloud Foundry and later calling the node api from web module.&lt;/P&gt;
  &lt;P&gt;Note: I do not want to use CLI here.&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 04:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaq-p/12266388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-09-15T04:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a node module and  call it from web module in Cloud Foundry</title>
      <link>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266389#M4594736</link>
      <description>&lt;P&gt;Can you please be more specific? It sounds like you want to create a node module as a runtime artifact which isn't possible. All modules are design time artefacts that need to be published via the CLI or the cockpit.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266389#M4594736</guid>
      <dc:creator>mariusobert</dc:creator>
      <dc:date>2020-09-15T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a node module and  call it from web module in Cloud Foundry</title>
      <link>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266390#M4594737</link>
      <description>&lt;P&gt;Sorry Marius, for making the question it unclear. So, the problem was I have node module, now inside the module I had created a folder called &lt;STRONG&gt;nodeTest &lt;/STRONG&gt;and it has a file with the name &lt;STRONG&gt;app.js&lt;/STRONG&gt; with the below content&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var http = require("http");
var port = process.env.PORT || 3000;
http.createServer(function (req, res) {
  res.writeHead(200, {"Content-Type": "text/plain"});
  res.end("Inside app file");
}).listen(port);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this the base url of my node application: &lt;STRONG&gt;https:XXX.ondemand.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;on calling this the &lt;STRONG&gt;server.js&lt;/STRONG&gt; gets called.&lt;/P&gt;&lt;P&gt;now, when I want to call &lt;STRONG&gt;app.js&lt;/STRONG&gt;. I call the below url&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;https:XXX.ondemand.com/nodeTest/app.js&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the output I am getting is of &lt;STRONG&gt;server.js&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sorry if its a very basic level questions.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266390#M4594737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-09-15T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a node module and  call it from web module in Cloud Foundry</title>
      <link>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266391#M4594738</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;jquery-dbg.js:9275 Access to XMLHttpRequest at 'https://XXX-node.cfapps.eu10.hana.ondemand.com/app?_=1600238827386' from origin 'https://web-XXX.ondemand.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;So, basically I am facing cross origin issue between node and web module.&lt;/P&gt;&lt;P&gt;Please help in resolving this.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 06:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-a-node-module-and-call-it-from-web-module-in-cloud-foundry/qaa-p/12266391#M4594738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-09-16T06:57:03Z</dc:date>
    </item>
  </channel>
</rss>

