UI Component - acrotron-spezvuz/auralization-proto GitHub Wiki

General

UI Component is an Asp.Net Core 2.1 application Auralization.SPA. The project contains two main parts:

  1. Index.html ( HTML UI with Bootsrap, Javascript and AJAX calls )
  2. Configuration API

Index.html

Index.html is a static file.
When page is fully loaded, JavaScript function gets a configuration from /api/config. This configuration contains Auralization API endpoint, basically stored in appsettings.json (appsettings.Development.json for developing process).

Configuration API

Single endpoint for HTTP GET method is in Controllers/ConfigController.cs. It returns Auralization Api endpoint form configuration file.

Configuration

There are two configuration files in the project, appsettings.json and appsettings.Development.json for production and development respectively. These files contains configuration for API Endpoints. AuralizaitionEndpoint is for Auralization.API and it is a single string, so you can have only one Auralization endpoint. In production config add an URL of deployed Auralization.API app.

Build

Use preferred way to build the project. There aren't any project dependencies or build orders.

Deploy

Publish Auralization.SPA by the wizard to an any folder or use command prompt dotnet publish -c Release -o <location> Make a zip archive from the published files. Follow instructions form the Deploy Application to AWS

⚠️ **GitHub.com Fallback** ⚠️