- https://containers.doc.sitecore.com/docs/intro
- https://www.youtube.com/user/mastersitecore (check out docker and containers)
- https://sitecore.gallery.video/detail/videos/featured/video/6176364412001/sitecore-10---developer-tour?autoStart=true
- https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html
- https://www.slideshare.net/BartPlasmeijer/sitecore-loves-containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned -Force; Set-ExecutionPolicy Unrestricted -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install dotnetcore -y | |
choco install dotnetcore-sdk -y | |
choco install webdeploy -y | |
choco install dotnetfx -y | |
choco install netfx-4.8 -y | |
choco install powershell-core -y | |
choco install azure-cli -y | |
choco install git -y | |
choco install sourcetree -y |
The files in this gist demonstrate a fairly basic setup for a JSS rendering host.
DISCLAIMER: No guarantees that the code actually runs as-is. It was largely edited in place, so there may be typos or small syntax errors that you'll need to correct in your editor of choice. Feel free to leave a comment with any necessary fixes.
-
Sitecore config:
jss-app-config.config
This file is meant to show you how to setup your app config to use an external rendering host. -
Entry point:
jss-rendering-host-tunnel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
var config = { | |
websiteRoot: "C:\\inetpub\\wwwroot\\sc911.sc", | |
sitecoreLibraries: "C:\\inetpub\\wwwroot\\sc911.sc\\bin", | |
hostName: "http://sc911.sc", | |
solutionName: "sc911", | |
buildConfiguration: "Debug", | |
runCleanBuilds: false, | |
toolsVersion: "16.0" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using Sitecore.Abstractions; | |
using Sitecore.ContentSearch; | |
using Sitecore.Data.Items; | |
namespace BasicCompany.Feature.Products.Services | |
{ | |
public class ProductRepository : IProductRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using Microsoft.IdentityModel.Protocols; | |
using Microsoft.Owin.Security; | |
using Microsoft.Owin.Security.Notifications; | |
using Microsoft.Owin.Security.OpenIdConnect; | |
using Owin; | |
using Sitecore.Owin.Authentication.Configuration; | |
using Sitecore.Owin.Authentication.Pipelines.IdentityProviders; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const calculateDistance = (p: number[], q: number[]) => { | |
if (p.length != q.length) return -1; | |
const subtracted = q.map((i, n) => i - p[n]); | |
const powered = subtracted.map(e => Math.pow(e, 2)); | |
const sum = powered.reduce((total, current) => total + current, 0) | |
return Math.sqrt(sum); | |
} | |
// Three dimension | |
const p = [2.15, 16.5, 5.6]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
$solrVersion = "6.6.2", | |
$installFolder = "c:\solr", | |
$solrPort = "8983", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "1.8.0_151" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Testing | |
{ | |
public class NewsController_LatestNews | |
{ | |
[Theory] | |
[AutoData] | |
public void Should_be_news_items_ordered_by_date_descending(IEnumerable<NewsResultItem> newsResultItems) | |
{ | |
var searchContext = Substitute.For<IProviderSearchContext>(); | |
var queryable = new LuceneProviderQueryableStub(enumerable); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Product | Filepath | Filename | DefaultExtension | Provider | CD | CM | PRC | CMP | RPT | |
---|---|---|---|---|---|---|---|---|---|---|
Platform | \website\ | Web.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | Commands.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | ConnectionStrings.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | ConnectionStringsOracle.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | FieldTypes.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | Icons.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | LanguageDefinitions.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | MimeTypes.config | config | Enable | Enable | Enable | Enable | Enable | ||
Platform | \website\App_Config\ | Portraits.config | config | Enable | Enable | Enable | Enable | Enable |
NewerOlder