Skip to content

Instantly share code, notes, and snippets.

@rcolepeterson
Last active August 29, 2015 14:03
Show Gist options
  • Save rcolepeterson/2f123bdf5d8fd7b6f206 to your computer and use it in GitHub Desktop.
Save rcolepeterson/2f123bdf5d8fd7b6f206 to your computer and use it in GitHub Desktop.
Various commands I have found helpful while learning how to code on the Node platform.

Express 4.0

Debug on windows: set DEBUG=express:* node ./bin/www

Node inspector.

node-debug app.js --debug-brk (break right away)

$ node-inspector & node --debug your-node-app.js

Sails and nodemon

Start nodemon : nodemon app

Mongo

Local insufficient space fix: mongod --dpath path-to-data/db --smallfiles

Start mongo mongod --dbpath c:[your project dir]/data

Various pc wcp commands

Make new file: type NUL > index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment