SAP-samples / btp-cap-multitenant-saas

Sample project that demonstrates how to setup a multitenant application for a Software-as-a-Service scenario, leveraging the Kyma and Cloud Foundry Runtimes of the SAP Business Technology Platform. Developers learn how to implement their own CAP (mtxs) based SaaS app including an SaaS API and integration with various essential SAP BTP service of...
Apache License 2.0
95 stars 43 forks source link

How to implement multitenacy in CAP projetc with custiomized app #61

Closed Deepanshu2906 closed 2 months ago

Deepanshu2906 commented 2 months ago

I have implemented a project with a basic folder structure of my App as attached, I was trying to implememnt from your repo. But having issue that , what are the mandatory files that I must include in srv folder of my custom project . Screenshot 2024-09-18 094752 your srv folder have below structure : image

I am having confusion in configuring server module in mta.yaml.As you have defined API folder ,having backend services to be consumed. I my case I have srv folder where backend service are generally defined and you can see many custom fiori apps that are consuming services from my srv folder.So how to approach in that case ?

Is it mandatory to have first screen like below for User managemment Dashboard ? : image After above screen my fiori app should appear as per member and user defined.

alperdedeoglu commented 2 months ago

That is the same in our case. In our repository, there are also more than one UI application consuming backend services. Of course it is not mandatory to have a mock launchpad. That is the design decision we took, to be able to show the available UI apps in an easy fashion. It is not mandatory. But as you see in the repo we also have more than one UI application and that works.

Services under /api are not consumed by UI applications, only the services under /srv are consumed by UI applications.

Is it mandatory to have first screen like below for User managemment Dashboard ?

No it is not.

After above screen my fiori app should appear as per member and user defined.

This I did not understand.

Deepanshu2906 commented 2 months ago

Thanks👍 for clearing . It means / api folder code can be put inside /srv also ? Please clear some points: 1) Under /srv directory there are many files and in Utils folder also many file. show below : image so can you mention which are bare min mandatory files that is required for my custom projects.

Can I exclude autoscaler and credentials store ? I am having problem in configuring mta file. as I am exploring BTP having 1 year of experince. Could you connect if available .

alperdedeoglu commented 2 months ago

Autoscaler you can exclude, credentials store in our case needed to connect CF API's to create routes. I would strongly suggest you to go through our documentation to understand which component does what. They are described.