Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

Creating Applications with Design Atoms Framework

This topic describes how you can create a web application and what packages you need to install for the Design Atoms Framework. You can refer to a sample application demonstrating how you can use the Design Atoms Framework in the following GitHub repository:

DesignAtomsSamples

Now, let us see how to create an application using the Design Atoms Framework from scratch.

Prerequisites

  1. Download and install Microsoft Visual C++ 2017 Redistributable Package (x64).
  2. Download and install Microsoft .NET Framework 4.6.2 or higher.
  3. Download Visual Studio 2017 or higher and install it with the ASP.NET and web development and Node.js development workloads enabled.

    ASP.NET and web development workload.

  4. Download and install TypeScript SDK 3.0.1 for Visual Studio. Note that you may receive compilation errors if you install a different version of TypeScript.
  5. Download and install node.js 10.15.3 (x64) or higher.

Creating a Web Application

  1. In Visual Studio, create an ASP.NET Web Application (.NET Framework) project.

    Creating an ASP.NET project.

  2. When creating the project, use the Web API project template.

    Creating an ASP.NET project using the Web API template.

  3. Install the NuGet package. There are two ways to perform this:
    • On the menu, click Tools > NuGet Package Manager > Manage NuGet Packages for Solution and search for Aurigma.DesignAtoms.
    • Open Tools > NuGet Package Manager > Package Manager Console and type:
      Install-Package Aurigma.DesignAtoms
      
  4. Install the Node.js package. At the command prompt, navigate to your project folder and type:
    npm install @aurigma/design-atoms --save
  5. Register your license key for Customer's Canvas as described in Registering Production License Keys.
  6. In the Global.asax.cs file:
    • At the beginning of Application_Start, add
      Aurigma.DesignAtoms.Configuration.Configuration.Setup(enableCors: true);
    • At the end of Application_Start, add
      Aurigma.DesignAtoms.Licensing.License.Check();
  7. In the App_Start\WebApiConfig.cs file, remove this line:
    config.MapHttpAttributeRoutes();
    Note

    You don't need to call HttpConfigurationExtensions.MapHttpAttributeRoutes() here, because Aurigma.DesignAtoms.Configuration.Configuration.Setup calls this method.

  8. Start your application.

Now, you can start using this framework and refer to the following topic for more details.

See Also

Manual

Other