This app basically parses a CSV data and validate each type of data (name,stars and uri) and returns it in two output formats:
- DataTables
- JSON
To get the Node server running locally:
- Clone this repo
npm install
to install all required dependenciesDEBUG=csvparser:* nodemon ./bin/www
to start the local server- NAVIGATE to localhost:3000 to start using the app
- expressjs - The server for handling and routing HTTP requests
- csv - This is used for parsing the CSV.
- pug - Pug is being used for the views
- is-url - it is used for validating the url format
app.js
- The entry point to our application. This file defines our express server. It also requires the routes.routes/
- This folder contains the route definitions for our API.controllers
- This folder contains the functions for the endpoints.public
- Contains the Jquery, Bootstrap filespublic/javascript/index.js
- Contains logic for the Screen Loader and handling data for DataTablescsvTesting.csv
- this is the unit test file for the csv parser