Skip to content

BryBo617/UrlRotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlRotator

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.

Setting up the API

You will need to download and install the following if they are not already.

  1. .NET Core SDK 2.0 or later

  2. .Net Core 2.x Windows Server Hosting

  3. Navigate to the directory you cloned - UrlRotator\UrlRotator-WebApi - and open a cmd window.

  4. 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.
    
  5. 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
    
  6. Create a website in IIS.

    a. Right click on the sites folder and select "Add Website..."

    alt text

    b. Complete the configuration as needed.

    alt text

  7. The Database schema is as follows, the WebApi will not work without it.

    alt text

  8. Change the appsettings.json DefaultConnection for your Sql Server instance and security requirements.

    "ConnectionStrings": {
        "DefaultConnection": "Server={yourServer};Database={yourDatabase};Trusted_Connection=True;"
    },
    
  9. Add the IIS Application Pool user to SQL Server This article is what I followed. Add ApplicationPoolIdentity to a SQL Server

Installing Chrome Extension

follow these steps to install the extension.

  1. Open Chrome. Click the menu to customize and control Chrome.
  2. Hover over More tools >, then select Extensions.
  3. Turn on Developer mode. It is a top right toggle button.
  4. Click LOAD UNPACKED
  5. Navigate to the folder with the Chrome Extension and select it.
  6. Click Ok.

Configuring the Chrome Extension.

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.

About

Chrome Extension to rotate intranet pages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published