wiki:Documentation/Howto/ImplementAHLWebAppPlugin

Version 2 (modified by dglaser, 4 years ago) (diff)

--

How to Implement A New HeuristicLab WebApp Plugin

In the following Guide we will create a simple HeuristicLab WebApp plugin.

A new project

We will now create a new Visual Studio project which will become the WebApp plugin.

  • In Visual Studio select "File > New > Project..." or press <Ctrl+Shift+N>
  • Use the "Class Library" template
  • Use "HeuristicLab.Services.WebApp.Example" as name

Configuring the project

References

Every plugin has at least a reference to Microsoft ASP.NET Web API, which is needed to create a controller.

  • Open the NuGet Package Manager and add a reference to Microsoft ASP.NET Web API
  • If database access is required, add project references to HeuristicLab.Services.Hive and HeuristicLabServices.DataAccess
  • Set the "Copy Local" property on these references to false. This references are provided by the WebApp and thus don't have to be deployed with every plugin.

Folder structure

Creating the Plugin definition file

TODO

Example Plugin

TODO

WebApi

TODO

WebApp

TODO

View

TODO

Controller

TODO

Service

TODO

Attachments (5)

Download all attachments as: .zip