Git Product home page Git Product logo

sanjaysaini2000 / netcore3-csvvalidator Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 53 KB

This app takes a CSV file and validate the data according to the validation provided to it in an xml file and generate the validated csv file at the location of the source CSV file. Both files path are configured in the app configuration file.

C# 100.00%
csharp-code netcore3 netcore3-console csv-validator sanjaysaini2000

netcore3-csvvalidator's Introduction

CSV Validator App

This app takes a CSV file and validate the data according to the validation provided to it in an xml file and generate the validated csv file at the location of the source CSV file. Both files path are configured in the app configuration file. Change the existing sample files with your own files.

Prerequisites

In order to run this app, you need .Net CLI tools and .Net Core Runtime installed on our machine. .Net CLI tools, .Net Core Runtime comes with the .Net Core SDK so download and install the latest version of .Net Core SDK available from this link https://dotnet.microsoft.com/download

Installing

After downloading the .Net Core SDK installer file, just double click on it and follow the instructions with default settings. After installation is complete, open the command window and run the following command.

dotnet --version

It will return the version number of the .Net Core.

Getting Started

Clone or Download the zip file of this repository. Open the command window in the folder where you have cloned or unzipped the repository.

Running the App

Build the app by running followind command in the command window.

dotnet build CsvValidatorApp.sln

Now move to Client project folder and run the app with following commands.

cd CsvValidator.Client
dotnet run

The app will opperate on sample CSV and validation files. Change these files with your own files by updating path of these files in the app.config file.

Running the Tests

Open the command window in the folder where the source code is unzipped and run following commands.

cd CsvValidator.Test
dotnet test

Deployment

The best thing about developing app in .net core is that they can be deployed across the plateform.

Deployment for Windows

Run following command to generate the release package in the Win folder. The Win folder will contain framework dependent executables only that means The target windows plateform must have same framework(.net core runtime) installed already which is used in this app.

dotnet publish -c Release -o Win

Deployment for Linux

Run following command to generate the release package in the Linux folder. The Linux folder will have self contained executables for Linux environment thats means the target Linux system doesn't require anything else to run this app.

dotnet publish -c Release -o Linux -r linux-x64 --self-contained true

Built With

netcore3-csvvalidator's People

Contributors

sanjaysaini2000 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.