Chrome Extension to rotate intranet pages.
You will need to first setup the internal API server. Then we will install the chrome extension in developer mode. After it has been installed, you will set a couple of settings. Finally, click the extension icon.
You will need to download and install the following if they are not already.
-
Navigate to the directory you cloned - UrlRotator\UrlRotator-WebApi - and open a cmd window.
-
Test to make sure you have dotnet on the path.
dotnet
You should see the following output.
Usage: dotnet [options] Usage: dotnet [path-to-application] Options: -h|--help Display help. --version Display version. path-to-application: The path to an application .dll file to execute.
-
The following snipit below will publish the UrlRotator.sln to the specified location set using the -o flag.
dotnet publish -c Release -o C:\UrlRotator\published
-
Create a website in IIS.
a. Right click on the sites folder and select "Add Website..."
b. Complete the configuration as needed.
-
The Database schema is as follows, the WebApi will not work without it.
-
Change the appsettings.json DefaultConnection for your Sql Server instance and security requirements.
"ConnectionStrings": { "DefaultConnection": "Server={yourServer};Database={yourDatabase};Trusted_Connection=True;" },
-
Add the IIS Application Pool user to SQL Server This article is what I followed. Add ApplicationPoolIdentity to a SQL Server
follow these steps to install the extension.
- Open Chrome. Click the menu to customize and control Chrome.
- Hover over More tools >, then select Extensions.
- Turn on Developer mode. It is a top right toggle button.
- Click LOAD UNPACKED
- Navigate to the folder with the Chrome Extension and select it.
- Click Ok.
You should see the extension show up just to the right of the address bar. Right click it and select options. The Machine Name is so you can query the api with a query term. If you leave that blank, it will query all slides. The Api URL is a required configuration property.