<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adrian Stauffer on Medium]]></title>
        <description><![CDATA[Stories by Adrian Stauffer on Medium]]></description>
        <link>https://medium.com/@adrian.stauffer?source=rss-8c05f00b1bd7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qbjXP43lB0oI0L8agzPDvg.jpeg</url>
            <title>Stories by Adrian Stauffer on Medium</title>
            <link>https://medium.com/@adrian.stauffer?source=rss-8c05f00b1bd7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:16:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adrian.stauffer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to setup GraphQL for Sitecore 9]]></title>
            <link>https://medium.com/valtech-ch/how-to-setup-graphql-for-sitecore-9-a3ac38e07f59?source=rss-8c05f00b1bd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ac38e07f59</guid>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Adrian Stauffer]]></dc:creator>
            <pubDate>Fri, 19 Oct 2018 07:34:59 GMT</pubDate>
            <atom:updated>2018-10-19T07:36:02.791Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIjfoUR90CUKibydNhq_Bw.jpeg" /></figure><p>The first time I heard about <a href="http://bit.ly/2I6ApkM">GraphQL</a> was two years ago. I was fascinated by the idea that a frontend developer can write queries exactly as they need it for every specific purpose. But when I first started setting up a GraphQL endpoint for Sitecore I realised very fast, that much more is needed than just setting up an endpoint like it is needed for REST.</p><p>That’s why I was even happier, when <a href="http://bit.ly/2HEymaA">Kam Figy</a> in his session “Uber-modern APIS for Sitecore” at the SUGON 2018 in Berlin told that they already implemented GraphQL in the <a href="http://bit.ly/2HumGmp">Sitecore JavaScript Services (JSS)</a>.</p><p>And so I found myself setting up GraphQL on my experimental environment just a day after I arrived home from the SUGCON. Below you find everything it took me to start GraphQL and a very basic sample app.</p><h3>Prerequisites</h3><ul><li>Sitecore 9 installation with JSS (Follow my guide <a href="http://bit.ly/2Kh5O4D">How to setup JavaScript Services for Sitecore</a>)</li><li>node.js v6.9 or later</li><li>npm v5.7 or later</li></ul><p>Make sure you did set &lt;compilation debug=”true”&gt; in the Web.config as described in the guide <a href="http://bit.ly/2Kh5O4D">How to setup JavaScript Services for Sitecore</a>.</p><p>Also make sure that you set * for AllowedControllers and CORS Origins in your API Key item (this should only be done for development, for production you should set appropriate values in here).</p><h3>Configure GraphQL Endpoint</h3><p>Sitecore and JSS don’t come with an already defined GraphQL endpoint. Therefore we first need to configure that endpoint. For that we will use the <a href="http://bit.ly/2HuKczH">offical GraphQL sample app</a>.</p><p>Open a command window in admin mode. Then run the following scripts. They will create an example app for a React application with GraphQL</p><pre>npm install -g @sitecore-jss/sitecore-jss-cli<br>jss create HERE-NAME-OF-YOUR-APP basic-sample-react-graphql<br>cd HERE-NAME-OF-YOUR-APP<br>jss setup</pre><p>Now the script will ask for the following three inputs:</p><ul><li>Full path to sitecore website folder (eg. c:\dev\sitecore\Website)</li><li>Sitecore host name (eg. http://sitecore9)</li><li>API Key (See how to create the API Key in this <a href="http://bit.ly/2Kh5O4D">blogpost</a>)</li></ul><p>After you entered this data run the following scripts</p><pre>jss deploy config<br>jss deploy package</pre><p>jss deploy config will copy the file at /sitecore/config from your frontend repository example to /App_Config/Include/zzz in your website root.</p><p>jss deploy package will build and bundle the frontend repository and deploy the bundle to /App_Config/Include/zzz. Also it will create the needed item structure in you Sitecore Content Tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*qCnF885ncMitM_X--dei3g.png" /></figure><h3>Test your GraphQL endpoint</h3><p>Now you can open the GUI interface to build and test your GraphQL. To find out the correct URL open the .config file in /sitecore/config in your GraphQL sample app. Look for this part:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*Gsp9aOqdAG8jLYY81KCoFQ.png" /></figure><p>Here you see that the url for the GraphQL endpoint is defined as /sitecore/api/jssbasicapp.</p><p>Open this url in the browser <a href="http://{hostname}/%7BGRAPHQL-ENDPOINT%7D/ui?sc_apikey={API-KEY}.">http://{HOSTNAME}/{GRAPHQL-ENDPOINT}/ui?sc_apikey={API-KEY}</a>. You should get the following interface. In there you can now write and test your GraphQL queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qi9GYEpAykpv1w72hOVzpg.png" /></figure><h3>Test the GraphQL sample app</h3><ul><li>Setup a small content tree inside the root of your javascript application inside sitecore. Use /sitecore/templates/NAME-OF-YOUR-APP/NAME-OF-YOUR-APP Route as the template for your page items. The Page Components items are standard folder items to group the content of a page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*wPDA0vHCrwAkj0fKuanhGQ.png" /></figure><ul><li>Open /src/app/components/Navigation/index.js and change the rootPath (See line 10 in the following example) so that it matches the page structure you just created.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/33861213700109e584aed516c9316d59/href">https://medium.com/media/33861213700109e584aed516c9316d59/href</a></iframe><ul><li>Open /App_config/Sitecore.config in your website root and change rootPath, startItem and database in the website site specification so that it matches the page structure you created (Or better you do the changes with a patch config).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a5a07e809b1c7979865115802e76f54/href">https://medium.com/media/7a5a07e809b1c7979865115802e76f54/href</a></iframe><ul><li>Open a command window with admin rights in your GraphQL sample app. Run jss deploy package. Your first JSS react app with GraphQL is now ready at <a href="http://{hostname}/">http://{HOSTNAME}</a>. Also the experience editor is now fully functional.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIYmKuTANkRhYfj5C4bCZA.png" /></figure><ul><li>Instead of jss deploy package you can also run jss start:connected to run the GraphQL sample app in development mode with connection to sitecore backend.</li></ul><h3>What’s next?</h3><p>Now you are ready to start building react components with GraphQL connection to your Sitecore backend. Please leave some claps and comment with your experiences and thoughts about this new approach to Sitecore development.</p><p>For a detailed guide about GraphQL check out <a href="http://bit.ly/2I6ApkM">graphql.org</a>.</p><p>Or check this <a href="http://bit.ly/2Kqe6ao">API Documentation</a> for the Sitecore GraphQL implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ac38e07f59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/valtech-ch/how-to-setup-graphql-for-sitecore-9-a3ac38e07f59">How to setup GraphQL for Sitecore 9</a> was originally published in <a href="https://medium.com/valtech-ch">Valtech Switzerland</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup JavaScript Services (JSS) for Sitecore 9]]></title>
            <link>https://medium.com/valtech-ch/how-to-setup-javascript-services-jss-for-sitecore-9-7e54893c64d8?source=rss-8c05f00b1bd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e54893c64d8</guid>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[sitecore]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Adrian Stauffer]]></dc:creator>
            <pubDate>Mon, 30 Apr 2018 15:06:09 GMT</pubDate>
            <atom:updated>2018-04-30T15:17:47.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuzkVa4503cvwxJ88uD3Rw.jpeg" /></figure><p><a href="http://bit.ly/2HumGmp">Sitecore JavaScript Services</a> (JSS) allows frontend developers to use modern UI frameworks (eg. React.js) without loosing access to the whole Sitecore Experience Plattform when implementing UI’s for Sitecore implementations.</p><p>I had quite some problems when I first set up the <a href="http://bit.ly/2HumGmp">Sitecore JavaScript Services</a>. Often I was stuck in errors, for which I didn’t find a fast solution on Google. That’s why I decided to write this blogpost with a list of all the steps to take to setup an environment to test this promising technology.</p><p>Most of these steps are collected out of the offical <a href="http://bit.ly/2HumGmp">JSS documentation</a>.</p><h3>Installation</h3><ul><li>Install Sitecore 9.0.1 rev. 171219</li><li>Download the JSS server packages from <a href="http://bit.ly/2r2o1L6">dev.sitecore.net</a>. Get the following .zip files and then install them with the Sitecore Installation Wizard:<br>Sitecore JavaScript Services Tech Preview Server 9.0.1 rev. 180412.zip<strong><br></strong>and<br>Sitecore JavaScript Services Tech Preview Infrastructure 9.0.1 rev. 180412.zip</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgGVwTTiFYga81pI1uFpRw.png" /></figure><h3>Configuration</h3><p>Open the Web.config in the website root of your sitecore installation and make the following changes.</p><ul><li>add line 7 from the example below</li><li>add line 11 from the example below</li><li>set debug=”true” on line 17 in the example below (only needed if you want to enable the GraphQL GUI)</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b5ca1b7a3f6076ae245e1e9524a068a/href">https://medium.com/media/1b5ca1b7a3f6076ae245e1e9524a068a/href</a></iframe><h3>API Key Creation</h3><ul><li>Open Sitecore Backend and switch to core database.</li><li>Go to /sitecore/system/Settings/Services/API Keys in the content tree and create a new API Key</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*IpMkDKdzfZjhga7cK8v07w.png" /></figure><ul><li>Fill the field AllowedControllers with *</li><li>Fill the field CORS Origins with *</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S2vDhJ2tzInG-pBFj_1v-g.png" /></figure><ul><li>Note the Item GUID (for example: {64E97354-DC2A-4505-A3DC-1E42CEC1AF42}) of the API Key Item. This is the API Key for JSS.</li></ul><h3>Verify JSS is working</h3><p>Open this url http://{YOUR HOST}/sitecore/api/layout/render/jss?item=/&amp;sc_apikey={YOUR API KEY}. You should get a result similar to this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16265d0414ea1f653412ac062da78699/href">https://medium.com/media/16265d0414ea1f653412ac062da78699/href</a></iframe><h3>Now you are ready — What’s next?</h3><p>When you get the above response you are done with the setup of JSS and can continue playing around with the examples from the official <a href="http://bit.ly/2HumGmp">JSS documentation</a> or you follow my <a href="http://bit.ly/2HFZ2nb">next guide</a> which shows the setup of the GraphQL example and GUI interface.</p><p>Here is my guide to <a href="http://bit.ly/2HFZ2nb">setup GraphQL for Sitecore.</a></p><p>Thanks for reading! Please leave some claps and a comment on how the setup did work for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e54893c64d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/valtech-ch/how-to-setup-javascript-services-jss-for-sitecore-9-7e54893c64d8">How to setup JavaScript Services (JSS) for Sitecore 9</a> was originally published in <a href="https://medium.com/valtech-ch">Valtech Switzerland</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Congratulations Raphael Schwarz for your Sitecore Most Valuable Professional (MVP) Ambassador Award…]]></title>
            <link>https://medium.com/valtech-ch/congratulations-raphael-schwarz-for-your-sitecore-most-valuable-professional-mvp-ambassador-award-92c5185b8a70?source=rss-8c05f00b1bd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/92c5185b8a70</guid>
            <dc:creator><![CDATA[Adrian Stauffer]]></dc:creator>
            <pubDate>Mon, 23 Apr 2018 17:52:51 GMT</pubDate>
            <atom:updated>2018-04-23T21:09:02.821Z</atom:updated>
            <content:encoded><![CDATA[<h3>Congratulations Raphael Schwarz for your Sitecore Most Valuable Professional (MVP) Ambassador Award 2018!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mal4LwYNa8OdgnPw6XQ_gw@2x.jpeg" /></figure><p><a href="http://bit.ly/2qUfJE9">Sitecore MVP</a> is highly recognized award which rewards the effort of an individual spent into sharing knowledge and expertise within the Sitecore community.</p><p>Raphael was awarded Sitecore MVP Ambassador 2018 due to his exceptional contribution towards the delivery of Sitecore projects for internet, intranet and portals. It took Raphael continuous engagement and effort in the Sitecore community, at clients, with peers and Sitecore representatives to establish his first time Sitecore MVP award. Always having the client in mind, he aims to know the latest Sitecore capabilities to match client needs.</p><p>Congratulation to this great achievement! Go find <a href="http://bit.ly/2HkUN4o">Raphael Schwarz</a> on Linkedin and leave a congratulation message!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92c5185b8a70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/valtech-ch/congratulations-raphael-schwarz-for-your-sitecore-most-valuable-professional-mvp-ambassador-award-92c5185b8a70">Congratulations Raphael Schwarz for your Sitecore Most Valuable Professional (MVP) Ambassador Award…</a> was originally published in <a href="https://medium.com/valtech-ch">Valtech Switzerland</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>