cancel
Showing results for 
Search instead for 
Did you mean: 

How to create React frontend in SAP CAP Model.

01-07-2022 3:48 PM
3459 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

Hi All,

Im trying to build CAP Project with React.JS as front end and Node.js ,CDS backend.

How to consume cap service in react module and how to deploy react app module as service?

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

Mattias
Contributor
0 Likes

I have not tried it on BTP, but I really like nextjs for react development, and it should be able to run on cloud foundry.

Just let CAP expose odata services and consume them using any of the node odata client libraries available.

gregorw
SAP Mentor
SAP Mentor
0 Likes

For the access to the OData Service you can give:

OData 2 TS

a try. To deploy the Application you can use the HTML5 App repository and either use the managed approuter or run it in your own approuter instance. For that check out the samples in:

multi-cloud-html5-apps-samples