GithubHelp home page GithubHelp logo

Comments (11)

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024 2

example in react
https://github.com/luizcarlospedrosogomes/cf-app-serverless-example

from multi-cloud-html5-apps-samples.

IObert avatar IObert commented on August 11, 2024

Hi,
Good question. I have to say that there are currently no plans to publish such a sample code, and I'm not sure if it makes much sense as the Launchpad service currently doesn't recognize non SAPUI5 apps.
Generally speaking, you can always follow the approach of the managed-html5-runtime-basic-mta and embed the app as an URL app manually in an FLP.

I've done something similar in this post here as well: https://blogs.sap.com/2020/02/03/cloudfoundryfun-11-integrate-a-react-app-in-the-fiori-launchpad/

I'll keep the issue open for now to have a discussion here in case others want to chime in.

from multi-cloud-html5-apps-samples.

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024

Are you telling me that the BTP launchpad service only supports SAPUI5?

There are some examples of react apps with launchpad service, all without react-route-dom, and the service itself allows you to include HTML5 apps.

I got confused

from multi-cloud-html5-apps-samples.

IObert avatar IObert commented on August 11, 2024

I'm saying that non-SAPUI5 apps can only be embedded as URLs apps :)

from multi-cloud-html5-apps-samples.

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024

using managed-html5-runtime-basic-mta
image

image

It looks for the static folder of the root of the portal, when it should look for the subfolder

from multi-cloud-html5-apps-samples.

IObert avatar IObert commented on August 11, 2024

I recommend reading the blog post I linked above. That one describes more details

from multi-cloud-html5-apps-samples.

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024

appreactLaunchpadService

After some adjustments I managed to deploy the "launchpad service" but it generated two nodejs services in BTP.

The "react-route-dom" worked.

The question that remains is how not to generate these services, it doesn't make sense for a static app to have a nodejs service?

from multi-cloud-html5-apps-samples.

IObert avatar IObert commented on August 11, 2024

To which two services are you referring to?

from multi-cloud-html5-apps-samples.

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024

these services
image

from multi-cloud-html5-apps-samples.

IObert avatar IObert commented on August 11, 2024

Ah, I see. Technically, these are called "apps" in Cloud Foundry as the term "services" is used for something else. Yes, you don't need them as the approuter isn't needed when you use the managed approuter and the ui_deployer can be substituted as well. For the details, I would refer you to this blog post of mine.

from multi-cloud-html5-apps-samples.

luizcarlospedrosogomes avatar luizcarlospedrosogomes commented on August 11, 2024

tanks @IObert

from multi-cloud-html5-apps-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.