You can assign role-collections after a tenant subscription is successful) ( Hint: role, and role collections already exist from the xs-security.json that was created on bootstrap. Use the BTP cockpit to add authentication & authorization to your login. If not, routes can be manually created in the CF enabled account.Īny of the links above will initially give a 403 forbidden error. If you enabled route creation / deletion, you should automatiically be taken to a page looking something like this. If all goes well, you’ll see a green subscribed box and have the option to ‘Go to Application’. ‘street-food’ & ‘tacos-and-tequilla’ are consumer tenants this our SaaS solution.įrom either tenant, navigate to Service Marketplace -> and create an instance of the service. Applications are deployed and run in CF enabled spaces. The main difference between our original ‘trial’ acount the the two newly created subaccounts is that CF is enabled in our trial account. Well want to create a 2 subaccounts to properly demonstrate multitenancy. That’s where we deployed our SaaS application to. If the deployment worked, well done! Let’s move on to BTP cockpit configuration.īy default BTP trial comes with on CF enabled account. cf set-env mt-tacoshop-srv cf_api_user ''Ĭf set-env mt-tacoshop-srv cf_api_password '' If you enable creation/deletion of tenant routes on bootstrap, we’ll also need to set up some environment variables that process routes during the subscribe/unsubscribe process. cf login -a īuild and deploy the project to SAP BTP mbt buildĬf deploy. Login to CF and target your trial BTP account. Before adding the postgres adapters, and connecting to our database, let’s make sure our projects is deploying and subscribe / subsubscribing correctly. ? Would you like to include an example of using the destination reuse service? YesĪwesome! With a few terminal cmds and the help of SAP academy we already have a large part of an enterprise level business application out-of-the-box. ? Would you like to include creation/deletion of tenant routes on subscribe/unsubscribe (using the CF API)? NB: This is not necessary when using a wildcard custom domain. ? Will you be using a wildcard custom domain (eg: )? If so please enter it here - or simply press enter for none. ? Would you like to include HANA persistence (schema separation)? No ? Would you like to include an example of using the SaaS API (view subscriptions)? Yes ? What is the description of your app? Multitenant Tacoshop SaaS ? What is the display name of your app? Multitenant Tacoshop ? Would you like to create a new directory for this project? No ? What project name would you like? mt-tacoshop This generator can also be run with: yo saphanaacademy-saas Below our the values for my sample project for reference. Launch the Saphanaacademy SaaS generator. Create you’re own project and make it yours, what kind business will your SaaS cater to?įrom the terminal clone and change director to the new project. I like to start off projects from an existing github repo and I’m also hungry, so I’ll be creating a multitenant tacoshop (mt-tacoshop). We’ll bootstrap our sample project using SAP Hana Academy’s SaaS yoeman generator so get those installed globally: npm install -g yo Once you’ve got your accounts and software set-up, grab some coffee and meet me back here. I’ll be using VS Code and Docker throughout the project, let’s get those installed too. Gregor Wolf, Mike Zaschka and Volker Buzek created the cds-pg & cds-dbm open-sourced libraries which make it possible to run CAP projects with a postgreSQL database.īefore digging in, you’ll want to make sure you have a BTP trial and a Github account. Most of what we’ll be doing in part 1 of this tutorial series comes from from SAP Hana Academy. SAP Hana academy has published an amazing youtube playlist showing how to bootstrap CAP projects to as Multitenant SaaS solutions.The Cloud Application Programming Model (CAP) framework relies on SAP Core Data Services to quickly build and ship full stack business applications.Let’s take a quick look at the three frameworks we’ll be combining in our sample project. However, getting the lego pieces of several different development frameworks can sometimes be tricky. Our goal is to create and deploy a sample project using CAP, multitenancy and postgreSQL to SAP Cloud Foundry environment (BTP).
0 Comments
Leave a Reply. |