<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mike Reynolds</title>
    <description>The latest articles on DEV Community by Mike Reynolds (@mikedreynolds68).</description>
    <link>https://dev.to/mikedreynolds68</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F940849%2F93945ab3-e152-4fb6-b283-49b774225354.png</url>
      <title>DEV Community: Mike Reynolds</title>
      <link>https://dev.to/mikedreynolds68</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mikedreynolds68"/>
    <language>en</language>
    <item>
      <title>Content SaaS | Get Started with Bloomreach Content SaaS</title>
      <dc:creator>Mike Reynolds</dc:creator>
      <pubDate>Mon, 17 Oct 2022 09:19:08 +0000</pubDate>
      <link>https://dev.to/bloomreach/content-saas-get-started-with-bloomreach-content-saas-22f3</link>
      <guid>https://dev.to/bloomreach/content-saas-get-started-with-bloomreach-content-saas-22f3</guid>
      <description>&lt;p&gt;We have launched ‘Bloomreach Content SaaS’ - our SaaS Content Management platform and this post aims to help you, our developers to get started.  Note - there is also a wealth of content and tutorials available over on our &lt;a href="https://documentation.bloomreach.com/content/docs"&gt;documentation website&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before we Begin
&lt;/h2&gt;

&lt;p&gt;First, you will need access to a Bloomreach Content environment. If you or your organization have signed up for the Bloomreach Content module, and a user account has been created for you, then you should have received a password reset email. Once you’ve set your password, you should be able to login to your Bloomreach Content environment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F63p2k4xvh29afpnsidno.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F63p2k4xvh29afpnsidno.png" alt="Image description" width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to be able to make changes to the front-end code then you need to download the &lt;a href="https://github.com/bloomreach/brx-react-spa"&gt;React Reference App&lt;/a&gt; from GitHub.&lt;/p&gt;

&lt;p&gt;The reference app uses the &lt;a href="https://www.npmjs.com/package/@bloomreach/react-sdk"&gt;Bloomreach React SDK&lt;/a&gt; to connect to a Bloomreach Content environment for the editing and delivery of the experience. As a developer, you will be able to run the reference app on your local machine and connect it to your Bloomreach Content environment to see how your changes will be used by content managers in the system. &lt;/p&gt;

&lt;h2&gt;
  
  
  Signing In For The First Time
&lt;/h2&gt;

&lt;p&gt;Signing into the Content Module interface for the first time will bring you to the Home screen. From here you can see the activity stream and any pending requests for content reviews and approvals.&lt;/p&gt;

&lt;p&gt;The first thing you’ll want to do is open the Experience Manager perspective by clicking the second icon in the navigation strip on the left side of the window. (It’s the one that looks like a circular play button).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbdtpg3p863kkuouqy8rv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbdtpg3p863kkuouqy8rv.png" alt="Image description" width="224" height="131"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the perspective that business users use to manage pages (and to iterate on documents / pages / products / search) and will be used, by you, to preview the changes you make to your front end code.&lt;/p&gt;

&lt;p&gt;The default view of the Channels perspective displays a list of the channels that have been created in the system. (A channel is an endpoint, a website, a region or essentially whatever you configure it to be.) Assuming this is a new instance, you should see only one channel listed, BrX SaaS:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff2rws76r6okgtppbfhd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff2rws76r6okgtppbfhd3.png" alt="Image description" width="596" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicking on the icon for the channel will launch the editing interface:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2lbrkgkt54cjj1qpoep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2lbrkgkt54cjj1qpoep.png" alt="Image description" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bloomreach hosts a copy of the reference app so you can get a feel for the editing experience. Within the edit interface you can preview the sample site and can make changes to pages, content and components it uses. You can even  publish your changes but you will not be able to view them on the “live” site since it is shared. &lt;/p&gt;

&lt;p&gt;While the concept of previewing and editing a React app inside Bloomreach Content is amazing, I’m sure you’re probably more interested in making changes to the code and you want to know if you can do that without standing up servers or installing tunnelling software. No worries. All you need is a local instance of the reference app and a Development Project created in your Bloomreach instance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Starting The Reference App
&lt;/h2&gt;

&lt;p&gt;If you haven’t already downloaded the code for the &lt;a href="https://github.com/bloomreach/brx-react-spa"&gt;React Reference App&lt;/a&gt; then you should do it now. Follow the instructions in the README.md to create a .env file, copying the .env.dist file and updating it with the domain for your Bloomreach Content environment. (Sample entry below.)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;REACT_APP_BRXM_ENDPOINT=https://&amp;lt;your_account&amp;gt;.bloomreach.io/delivery/site/v1/channels/brxsaas/pages
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save the changes to your .env file, then build and run the React app using the following commands&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn
yarn start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The app should open a new browser window and load the Pacific Nuts &amp;amp; Bolts site with the content and configuration for the core version of the BrX SaaS channel in your Bloomreach Content environment. Any changes that have been made to the core version of the BrX SaaS channel will also be visible in your local instance. &lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Into The (Pacific) Nuts &amp;amp; Bolts
&lt;/h2&gt;

&lt;p&gt;Projects allow developers to work on changes to channels in their Bloomreach Content environment without impacting business users. When you create a Development Project, it makes a separate branch in the underlying repository, similar to a code branch, which gets merged back into the core channel configuration when complete.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq3tx7w5jxh0tyqh0fooc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq3tx7w5jxh0tyqh0fooc.png" alt="Image description" width="148" height="51"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To create a new Development Project, click the Projects icon in the navigation strip on the left side of the window. (It’s the one that looks like a clipboard.) This will open the Projects perspective for your instance, which should look pretty empty. To add a new project, click the blue  &lt;em&gt;+ Project&lt;/em&gt; button in the top right corner of the screen. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4a39bkpfwmbaptlefak2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4a39bkpfwmbaptlefak2.png" alt="Image description" width="107" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the New project screen enter a Project name for your project, check the Development project checkbox, and click the Create button in the top right-hand corner. (Don’t worry about the Includes document type changes checkbox for now) After creating the project, you will be taken to the project details view. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy93kt8ogh14495azvrgd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy93kt8ogh14495azvrgd.png" alt="Image description" width="508" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the Project details screen, click the + Channel button in the top right corner of the Channels tab for your project and select the BrX SaaS channel in the pop up window. After the channel is added to the project, click the Gear icon, located on the right-hand side of the row, to manage the channel settings. In the modal window, select the third radio button, enter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in the text field and click the Set button. Your project is now configured to use the React app running on your local machine for previewing your changes made in your development project.&lt;/p&gt;

&lt;p&gt;Click the BrX SaaS channel from your Projects perspective. You should be taken to the Experience Manager perspective and at the top of the preview window you should see the text: “For project:  (In progress)”.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modifying a Component
&lt;/h2&gt;

&lt;p&gt;Now that you have your project created, and connected to a local instance of the reference app, you can make, and review, changes to the reference app. To demonstrate this, you’ll update the Single-Banner Carousel component that appears on the Pacific Nuts &amp;amp; Bolts homepage. &lt;/p&gt;

&lt;p&gt;The code  for the SingleBannerCarousel component can be found under the src/components folder in the reference app. Inside the component folder there is a Banner.tsx file that contains the display logic for each banner in the carousel. In the Banner.tsx file, remove following code block and save the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{content &amp;amp;&amp;amp; (
  &amp;lt;div
    className={`${styles.banner__contents} d-inline-block mark mt-1`}
    dangerouslySetInnerHTML={{ __html: page?.rewriteLinks(content.value) ?? '' }}
  /&amp;gt;
)}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Return to the Experience Manager perspective in your browser and make sure you are still viewing your development project. Click the Tray Slideout icon in the top left corner of the screen to open the Sitemap and Components tray, then click the home link in the Sitemap to reload the homepage and verify that the content block you removed is not shown.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy4d4k11nfbxgud5ua6t6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy4d4k11nfbxgud5ua6t6.png" alt="Image description" width="291" height="250"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;While still in your development project, edit the title of one of the banners by clicking the orange Edit Content button and adding it to your project. After saving your changes you should see them reflected in the carousel. &lt;/p&gt;

&lt;p&gt;To confirm that your changes only exist in your development project, switch to the Core project by selecting it from the For project dropdown at the top of the preview panel. When the preview panel reloads, you should see the original banner content with the original template.&lt;/p&gt;

&lt;p&gt;The content, and the reference app, used by the Core branch are unaffected by the changes in your development branch and your local code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this article, we got up and running with Bloomreach Content in under 3 minutes and we went on to build out a developer workflow.&lt;/p&gt;

&lt;p&gt;Next up, there is an amazing tutorial available here which will helps you to get going with your own &lt;a href="https://documentation.bloomreach.com/content/docs/development-environment"&gt;local SPA&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>bloomreach</category>
      <category>contentsaas</category>
      <category>saas</category>
      <category>getstarted</category>
    </item>
  </channel>
</rss>
