Saturday 3 September 2016

Getting Started with Material 2:

Getting Started with Material 2:


  1. Prerequisite:
    1. Node must be installed and version will be at least 5.5.0 version.
    2. Npm must be there and version will be at least 3.3.12
    3. Angular-cli must be there and version will be at least 1.0.0-beta.10
  2. To check all these are installed on your local machine
    1. > node -v
    2. > npm -v
    3. > ng -v
  3. To install all these:
    1. Choco install nodejs
    2. From cmd prompt
      1. Npm install -g angular-cli
  4. Now to get angular-cli version 1.0.0 take prashant’s package.json file from docs.
  5. Now it’s time to start with material 2.




And now goto root folder
Npm install -g angular-cli
Npm install
ng init --source-dir app
Ng build
Ng serve (for first time)


For next time
Goto cmd prompt
Npm start


Enjoy Buddy!!!


Sunday 28 August 2016

check broken link status and result will be store into another file


scripts.sh:
OUTPUT="result.txt"
function test {
 RESPONSE=$(curl -so /dev/null -w "%{http_code}\n" ${1})
 if [[ $RESPONSE != 200 ]]; then
   echo "${RESPONSE} on ${1}" >> $OUTPUT
 fi
}

Create another text file as result.txt where broken urllist will be store.
And one more thing is that all the url that you want to check write into scripts.sh which will be beginging by test as write above in scriipts.sh.


This scripts will be store all the broken urls.