README
Node Demo App
Shows the world the steps to go to get proud to have your own npm install nodedemoapp
Create a package.json and commit it to this repository
Create a server.js within
console.log('Hello GitHub')
Create a NPM Account either by
npm adduser
or at https://npmjs.org/signuplogin by
npm login
change directory where your
package.json
is locatednpm init
ornpm publish
If you see +nodedemoapp
you have done well :-)
Try it
To use your first own node module you simple create a test.js
var demo = require('nodedemoapp');
demo.hello('GitHub');
Don't forget to install the module before executing node test.js
npm install nodedemoapp
Or you could add a dependancy to your package.json
"dependencies": {
"nodedemoapp": "^0.0.1"
}
and install your app by npm install
within your directory