cbeley / nodeAppDemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodeAppDemo

This is just a little Express/Web-App demo that lets you upload employee and salary csv files to have a join done between the two and display the data in a pretty web-based UI.

Usage

First run the setup script

npm install
grunt exec:setup

If you don't have grunt installed, you can either run an npm install to get it or install it globally:

npm install grunt -g

You can then run in prod mode or dev mode. Dev mode enables errorhandler (https://github.com/expressjs/errorhandler).

grunt exec:runDev
grunt exec:runProd

You may also run the app directly by doing:

./bin/server

Finally, the web-application portion of it can be found at http://localhost:PORT

Available Options

You may pass in environment variables when running the app directly:

PORT=42 DEBUG=nodeAppDemo ./bin/server

PORT - Port to run the server on. NODE_ENV - either development or prod DEBUG - Specifies what debug output to display. See https://github.com/visionmedia/debug.

Development

client-side code can be browserified/generated by doing the following:

grunt browserify

Generated code will end up in public/js/nodeDemoApp.js. For more details on browserify, see http://browserify.org/

Code can be linted by doing:

grunt jshint

and releases can be made via

grunt release
grunt release:patch
grunt release:minor
grunt release:major

Finally, the automated tests can be run by doing

grunt simplemocha

License

Unlicense

About

License:The Unlicense


Languages

Language:JavaScript 98.1%Language:CSS 1.9%