DataConveyer_CsvToFlat_wasm is a Web Assembly that demonstrates versatility of Data Conveyer. It uses Data Conveyer confined within a web browser to convert a CSV file to a flat (fixed-width field) file.
The input file is expected to contain aircraft data along with IATA and ICAO codes. Like so:
"Airbus A320","320","A320" "Boeing 747","747",\N
Upon execution, the original input and converted data are displayed side-by-side in the browser window. The coverted data contains translations between the IATA code and the aircraft names (ICAO codes get discarded), i.e.:
320 - Airbus A320 747 - Boeing 747
Disclaimer: The solution relies on Blazor technology, which as of June 2019 is in preview and not officially released. It is known that Blazor-based Web Asseblies currently take long time to load. This demo application may perform poorly and should not be used as an example of any production-level solution.
Note: The compiled version of this web application is available online. It can be used instead of installing and building it by following steps 3 to 8 below (the input file, e.g. planes.dat is still needed on local machine).
Fork this repository and clone it onto your local machine, or
Download this repository onto your local machine.
Open DataConveyer_ConvertCsvToFlat solution in Visual Studio 2019. Note that the Visual Studio version needs to support client-side Blazor projects. As of June 2019, the easiest way to do so is to obtain Visual Studio Preview.
Build and run the application, e.g. hit F5
- a bowser window will show up; upon loading, a "Data Conveyer in a web browser" page will be displayed.
Click the "Browse" button (or the "Choose File" button or similar - this depends on the web browser you use).
In the Open file dialog that shows up, select input file, e.g. planes.dat.
Hit the "Read and Conver Airplane Data" button.
- the file will get processed as reported on the browser page.
Review the contents of the "Input Data" and "Output Data" text areas displayed in your browser window.
(optional) Repeat steps 3-6 for other additional input file(s).
To exit application, close the browser window.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Copyright © 2019 Mavidian Technologies Limited Liability Company. All Rights Reserved.