Sunday, March 31, 2019

Configure Redis in Development Environment


  1. Run this on Command Prompt.(Command Prompt with Admin rights)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  1. Now Run “choco install redis-64”
  2. Once this done execute “redis-server”. This will start redis server
and then can access redis cache by using the connection string "localhost:6379,ssl=false"
Helpful links:



For GUI
npm install -g redis-commander
redis-commander

Thursday, March 21, 2019

Analize Angular Bundle Size

Install Analyzer
npm i -D webpack-bundle-analyzer

Run Prod build command with --stats-jso argument. 

This will create stats.json. 

then run analyzer command to analyze the result. 
webpack-bundle-analyzer ./dist/stats.json

If any issue running command then add following to your package.json and run npm run bundle-report.


"bundle-report": "webpack-bundle-analyzer dist/stats.json"