Monday, October 31, 2016

Software in General Links

 
 
Happiness is a Boring Stack - C# SQL Server, etc doesn't break, but still keep up with the latest cool stuff.
 
 
 
 
 
 

Javascript Links

 
If you are new to JavaScript, start with the articles in the learning area and the JavaScript Guide. Once you have a firm grasp of the fundamentals, you can use the JavaScript Reference to get more details on individual objects and statements.
 
Getting st
 

Friday, October 28, 2016

Node.js

Express web framework:

In Visual Studio:

AngularJS: AJAX using ASP.NET Web API & Node.JS:


Run a node server app as a windows service or in the background:
I've npm installed PM2
pm2 list
pm2 start appHttp.js
pm2 stop appHttp.js
 
Upgrade node and npm
Download and run Node MSI (the official Node site)
Run npm-windows-upgrade (the official NPM site)
node -v
npm -v
here's how to upgrade npm:
npm-windows-upgrade -p -v latest 
 
 
Node for Windows guidelines
 
Node API Docs
%APPDATA%\npm\node_modules\learnyounode\node_apidoc
 
NPM
Scenario: install lodash globally, then make it a dependency of the project
-----------------------------------------------------------------------------------------
npm install -g    (-g is for global)
      ex: npm i -g lodash
npm i --save lodash (this marks lodash as a project dependency in the package.json file )
-----------------------------------------------------------------------------------------
Scenario: install packages locally and check them in
(an option to consider)
need to have node_modules folder in .gitignore
-----------------------------------------------------------------------------------------
Scenario: download dependencies not checked in
npm install
-----------------------------------------------------------------------------------------
 
 
npm shrinkwrap   (do this after an install so that dependencies of dependencies, etc get versioned
so that everyone cloning the project will have all the same dependencies recursively down the
dependency chain) - Caveat - to be 100% confident, check binaries in.