Code Monkey home page Code Monkey logo

nodeappdemo's Introduction

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
./node_modules/.bin/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 ./node_modules/.bin/grunt -g

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

./node_modules/.bin/grunt exec:runDev
./node_modules/.bin/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

nodeappdemo's People

Contributors

cbeley avatar clindsey avatar

Stargazers

Michael Anthony avatar

Watchers

 avatar James Cloos avatar Michael Anthony 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.