Saturday, May 20, 2017

My Home Arudino Project Libraries Users

DTH Library used

https://github.com/markruys/arduino-DHT


git configure

git init
npm install express --save
npm install body-parser --save
npm install cookie-parser --save
npm install multer --save

npm install express-handlebars --save
npm install bootstrap@3 --save

npm install socket.io --save
npm install serialport --save

npm install sleep --save

Installing Serial port Globally
npm install -g serialport
serialport-list

Saturday, March 4, 2017

Setup Node JS project with Expres, Bootstrap, Handle bars for Single page Development

This document explains how to setup a Node project with required pre requiest for Express, Bootstrap and Handle bars.

Step 1: Install Node JS

Step 2: Setup Node JS cache and npm
npm config set prefix "D:\02-Application\npm"
npm config set cache "D:\02-Application\npm-cache"

Step 3: Create project folder in our case
cmd
D:
mkdir SinglePageTutorials
cd D:\SinglePageTutorials

Step 4: Initilize the node project
cmd
D:
cd D:\SinglePageTutorials
npm init

Step 5:  Add all the required modules
npm install express --save
npm install body-parser --save
npm install cookie-parser --save
npm install multer --save

npm install express-handlebars --save
npm install bootstrap@3



Sunday, February 26, 2017

Changing default node js init folder and cache folder

The node js add a global folder as a default loading of apps

Default location is
npm : C:\Users\%USERNAME%\AppData\Roaming\npm
npm-cache: C:\Users\%USERNAME%\AppData\Roaming\npm-cache

You can change that to your own location as below command

Step 1: Open Command prompt with Administrator rights

Step 2: Execute the below command
npm config set prefix "C:\node\npm"
npm config set cache "C:\node\npm-cache"

Step 3: Make sure you have that folder created before running any npm command

That's it.

Sunday, February 19, 2017

How to suspend screen in Windows or Shutdown Windows

This document is created to share some of the ways we can suspend windows display when the windows desktop/laptop is working

Step1: Open the Run command by pressing +R
Step2: Execute the below command
%systemroot%\system32\scrnsave.scr /s

How to Shutdown the windows thru Command prompt
Step1:
Step2: Execute the below command
SHUTDOWN /s /f /t