jzone1366 / webSci_lab6

Nodejs, csv, json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webSci_lab6

Description

Display two buttons that will run nodejs functions to create a tweets.json file and then export that json file to a csv file. There is a basic HTML form that is used to display the buttons, the header, and the alert messages to notify the user of what is going on. Jquery is used to create click events for the buttons to emit events to the server. Twitter bootstrap is used to style the form, buttons and layout. The application is responsive via bootstrap. Communication via the client and the server is handled via the Socket.io module.

Reflection

Handling events in nodejs can be quite tedious when first looking at them. Using Socket.io allows for easy access to client and server side events via a socket. This allows the client to emit an event to the server and the server to emit to a single socket or to all sockets. Exporting json to csv also isn't that bad when you use a module that can be included via npm. NPM is powerful and allows a developer to easily reuse modules they have devleoped or to use modules from other developers. Nodejs makes it simple to communicate between the server and the client and allow for interactivity.

References

Socket.io Nodejs.org getbootstrap.com node-fs json2csv module expressjs.com

About

Nodejs, csv, json


Languages

Language:JavaScript 97.7%Language:CSS 2.3%