Giter VIP home page Giter VIP logo

csv_parser's Introduction

#Process Documentation

  1. Dependencies: cors.js: Cross origin resource sharing. It helps to make api accessable across domain. fs.js: This is a filestream library to access/modiy the file from local machine. It is used to save the read csv file that machine. csv-parser: This is ued to parse csv file and convert it to json object.
  2. Server.js run the node server on port 5000 by default and can be configured by changing port variable.
  3. In this we parse the csv file once the server starts and create a map of "key" as hdi and "value" as json object for all entries from csv.
  4. For every GET/POST request it acces the hdi key from request and looks inside the map and server the value for corresponding key.

#API methods: GET url: http://localhost:5000/api/[hdi] output format: { data: { hdi, chunk, has_space } }

methods: POST url: http://localhost:5000/api/ input format: { hdi: [value] } output format: { data: { hdi, chunk, has_space } }

#Getting started (Installation)

  1. Install Node.Js
  2. Go to root of the directory
  3. Install Dependencies: 'npm install'
  4. Start by executing: 'npm start'

csv_parser's People

Watchers

James Cloos avatar Jignesh Modi 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.