Wednesday, May 31, 2023

Sitecore Next JSS - Configure the Redis server in XP0 topology

 This blog can help you to work with Sitecore CMS and guide you to configure the Redis server in XP0 topology. 

The following steps will be helpful for you to make the changes in the XP0 docker-compose.override.yml file. These guidelines are applicable to Sitecore 10.3. 

1. Create the project solution by referring to the following blog. You can name your solution anything you like.

https://sitecoreknowledgehub.blogspot.com/2023/03/sitecore-jss-next-jss-local-environment.html


2. Navigate to the path -\run\sitecore-xp0 and update the file - docker-compose. override.yml with the following configurations.


# Redis
  redis:
    image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-redis:${VERSION:-latest}
    build:
      context: ../../docker/build/redis
      args:
        PARENT_IMAGE: ${SITECORE_DOCKER_REGISTRY}redis:3.2.100-${EXTERNAL_IMAGE_TAG_SUFFIX}




3. Navigate to the path -\run\sitecore-xp0 and run the docker-compose up -d. It should bring up the new Redis server container as shown below.





4. Verify the Redis connection. Navigate to the Redis container and run the following commands,







                                                                 Happy Learning!

Sitecore Next JSS - Helix architecture setup

This blog can help you to work with Sitecore CMS and set up the helix architecture with Next JSS. 

The following steps will be used to set up the helix architecture for the Next JSS application. These guidelines are applicable to Sitecore 10.3. 

1. Create the project solution by referring to the following blog. You can name your solution anything you like.

https://sitecoreknowledgehub.blogspot.com/2023/03/sitecore-jss-next-jss-local-environment.html

2. The output of step #1 is shown below.


3. Create  the main Helix folder structure like below,



4. Create a module.json file inside the feature folder and update the JSON file with the item paths.




5. Move NextJs framework code/libraries and platform project inside the project folder.


5. Create Foundation projects to maintain common features, helpers,..etc,



6. So far we created the Helix folder structure and changed the existing structure that we get from the getting started template. In order to make the application up and running, please make the following changes in the respective files.

Change the push location path inside file- up.ps1.


Navigate to \run\sitecore-xp0 and update the .env file as per your system configuration.


Update the folder paths (mention paths where the module.json file is located) inside file -\sitecore.json.


Go to file - \dockerfile and change the platform project path.


Change the NextJs source path inside the file -\run\sitecore-xp0\docker-compose.override.yml


7. Finally run the command- docker-compose up -d. Your JSS app should work with Helix setup.



                                                                    Happy learning!

How to Create a Public Link Using the Sitecore Content Hub REST API

Creating a public link using the Sitecore Content Hub REST API is a straightforward process that enables you to share content externally whi...