Setup the Project

In this article you will find:

Goal

This article provides information of the steps needed to setup the Hawksearch connector project.

Prerequisite

  1. Project with Sitefinity 10.2.6600, 11.2.6900, 12.0.7000, 12.2.7200, 13.0.7300, 13.1.7400, 13.2.7500, 13.3.7600

  2. Access to Americaneagle.com TFS SitefinityStandarts collection - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/_projects

The Master branch of Hawksearch projects targets Sitefinity version 13.3.7600

Steps for Setting-up the Project

  1. Clone the hawk-search-add-on repository - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/hawk-search-add-on

  2. Clone the hawk-search-add-on-widgets repository - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/hawk-search-add-on/_git/hawk-search-add-on-widgets

  3. Make sure your current version of NodeJs is set to v14.9.0. You can follow the link to download NodeJS v14.9.0 - https://nodejs.org/download/release/v14.9.0/

  4. Make sure you have installed angular cli v7.3.0. You can use this command in the console at the root of your project -

    npm install -g @angular/cli@7.3.0
  5. In the console at the root of the Hawksearch project run -

    npm install npm run build
  6. In the console at the root of the HawksearchWidgets project run -

    npm install npm run build
  7. Add all four project to your SitefinityWebApp solution:

  8. Add Hawksearch.IFilter and Hawksearch.SDK projects as a references to the Hawksearch project.

  9. Аdd Hawksearch and Hawksearch.SDK projects as a reference to the HawksearchWidgets project.

  10. Add Hawksearch ,HawksearchWidgets, Hawksearch.IFilter and Hawksearch.SDK projects as a references to the SitefinityWebApp project.

  11. Add the HawkRoutesInitializer.cs to the App_Start of your SitefinityWebApp project. The HawkRoutesInitializer.cs is in HawksearchInstallation folder at the root of the hawk-search-add-on repository.

  12. Navigate to the root of the hawk-search-add-on-widgets repository and browse the ResourcePackages folder. There you will find both Hawksearch widgets template directories and copy them to the SitefinityWebApp → ResourcePackages → Bootstrap4 → MVC → Views.

  13. Build the Solution.

Known Issues

If you have Roslyn error when you try to run the solution delete the bin folder from the SitefinityWebApp project, restart the Visual Studio and rebuild the solution.

Next Steps