SecurBank Sample App for the Universal Editor securbank
Learn about the Universal Editor with hands-on experience by using the SecurBank App, designed to showcase the power, flexibility, and usability of the Universal Editor to accelerate content creation.
Prerequisites prerequisites
- You must be assigned to the AEM Administrator product profile to install the SecurBank app.
- You must have Node.js version 20 or higher installed for local development.
Installing SecurBank installation
The installation of the SecurBank app is straight forward, but because it touches many areas of AEM as a Cloud Service a number of steps are involved. The following is an overview of the main steps.
- Create a sandbox program in Cloud Manager.
- Clone the program’s git repository and update with the SecurBank AEM project content.
- Run the pipeline to deploy the SecurBank AEM project.
- Retrieve Cloud Manager credentials for local web app development.
- Download and configure the SecurBank web app.
- Run the SecurBank web app.
The following sections detail the individual tasks required.
Create a sandbox program in Cloud Manager. create-sandbox-program
You will need a new Cloud Manager program where you can install SecurBank.
-
Log into Cloud Manager at my.cloudmanager.adobe.com and select the appropriate organization
-
Create a new sandbox program for the SecurBank app.
- Use the default options when selecting Solutions & Add-Ons.
- For details on how to create a sandbox program, please see the document Creating Sandbox Programs.
Clone the program’s git repository and update with the SecurBank AEM project content. clone-and-update
-
Once the program is created, open it and on the Repositories tab, tap or click the Access Repo Info button to open the Repository Info dialog and view the credentials necessary to access the git repository for the sandbox environment.
- For details on how to access your repository information, please see the document Accessing Repositories.
-
Using the credentials in the Repository Info dialog, clone the repository on your local machine.
-
Locate the folder of the local clone, open it and delete all content except for the hidden/dot files.
-
Retrieve the latest SecurBank AEM project code from GitHub at
https://github.com/Adobe-Marketing-Cloud/summit-2024-l425-securbank
by clicking Code and then Download ZIP in the dropdown. -
Decompress the contents of the zip file on your local file system and move it to the now empty folder of the local clone of the sandbox program.
-
Using the terminal, switch to the folder of the cloned project and commit all the content and push it to git.
git add --all
git commit -m "Adding SecurBank app code"
git push
Run the pipeline to deploy the SecurBank AEM project. run-pipeline
With the AEM project for SecurBank committed to the sandbox repository, it can be deployed with a pipeline.
-
Return to the Overview tab of your sandbox program in Cloud Manager and run the full-stack non-production pipeline.
- Uncheck all options for the pipeline run.
- For more information about running pipelines, please see the document Managing Pipelines.
Retrieve Cloud Manager credentials for local web app development. retrieve-credentials
Before you can run the SecurBank app, you will need Cloud Manager credentials to connect the app to Cloud Manager.
-
As the pipeline is running, return to the Overview tab in Cloud Manager, and tap or click the ellipsis button next to the environment name and select Developer Console.
-
In the Developer Console select the Integrations tab then the Local Token tab and tap or click Get Local Development Token.
-
A JSON file is produced with the access token. Copy only the token itself (the remaining JSON is not necessary) to a secure location for use in a future step before closing the Developer Console and returning to Cloud Manager.
-
Back in Cloud Manager, on the Overview tab, right-click the URL of the environment to copy it and save it in a secure location for use in a future step.
Download and configure the SecurBank web app. download-web-app
Now you can download and configure the SecurBank web app.
-
Retrieve the latest SecurBank app code from GitHub at
https://github.com/Adobe-Marketing-Cloud/summit-2024-l425/tree/ue-z-final-with-events
by clicking Code and then Download ZIP in the dropdown. -
Decompress the contents of the zip file on your local file system.
-
Start your preferred code editor and open the hidden environment file in the SecurBank app project at
summit-2024-l425-ue-z-final-with-events/react-app/.env
. -
Make the following changes to the
.env
file and save the changes.- For
REACT_APP_HOST_URI
paste the value of the previously copied URL of your environment. - For
REACT_APP_DEV_TOKEN
paste the value of the previously copied local development token.
- For
Run the SecurBank web app. run-web-app
With everything set up both in Cloud Manager and locally, you can run the SecurBank web app.
-
At the command line of your local machine, navigate to the
react-app
folder of the SecurBank app project you downloaded and decompressed. -
In your
react-app
folder install the SecurBank app with thenode -i
command. -
Once installed, start the SecurBank app with the
npm start
command. -
If the installation and start were successful, you will see:
-
The following output in the terminal.
code language-text Compiled successfully! You can now view securbank in the browser. Local: https://localhost:3000 On Your Network: https://192.168.1.15:3000 Note that the development build is not optimized. To create a production build, use npm run build. webpack compiled successfully
-
And a browser window open to the URL
https://localhost:3000
.- Note that this is for development purposes and as such, no valid certificate is provided. As such you may need to inform your browser to allow it to access the page.
-
Congratulations! You should now see the SecurBank app successfully running in your browser.
If the content does not yet appear, make sure that the Deploy to Dev pipeline that you ran completed successfully.