- Angular / General
npm i -g @angular/cli @angular/core @angular/forms @angular/forms terser typescript
- Progress
npm i -g @progress/kendo-angular-inputs @progress/kendo-angular-notification @progress/kendo-angular-dropdowns
`
- Fort/ Font Awesome
npm i -g @fortawesome/angular-fontawesome @fortawesome/free-solid-svg-icons @fortawesome/fontawesome-svg-core
- Keypress.js: https://github.com/dmauro/Keypress, NPM: https://www.npmjs.com/package/keypress.js
npm i -g keypress.js @types/keypress.js
- Websocket client
npm i -g socket.io-client @types/socket.io-client
- Example Github project: https://github.com/luixaviles/socket-io-typescript-chat
ng new angular-cpp-websocket --style=scss --enableIvy=false --routing=true
for i in home page-not-found enter-access-number enter-pin account-volume requested-volume product-type dispensing thank-you closed fault; do ng g c "${i}"; done
ng g service portalogic
ng g guard auth
npm i -g @angular/cli
npm i rxjs rxjs-compat @angular/http
ng add @progress/kendo-angular-buttons @progress/kendo-angular-dropdowns @progress/kendo-data-query
npm i @progress/kendo-theme-material
- tutorial: https://mdbootstrap.com/angular/5min-quickstart/
- click "PRO" underneath "NPM installation"
npm i git+https://oauth2:[email protected]/mdb/angular/ng-uikit-pro-standard.git --save
npm i [email protected] @types/chart.js [email protected] [email protected] [email protected] @fortawesome/fontawesome-free animate.css
- 3rd party libraries
- Example Github project: https://github.com/luixaviles/socket-io-typescript-chat
npm i express socket.io-client @types/socket.io-client gulp-cli cors @types/cors
- server:
cd server
npm i
gulp build
npm start
- C++ Websocket Library: https://github.com/zaphoyd/websocketpp
Commands -------------------------------------------------------------------------------------------------------------------------
ng --version
// show angular versionng update --all --force
// update all angular packages (ignore peer dependency errors)ng build --prod --aot
// build for productionng serve --host 0.0.0.0
// allow outside PC's access to the app
ncu -u -f /^@progress/
// check progress widget versions
node -v
// show node version
npm -v
// show npm versionnpm i -g npm
// update npm versionnpm update
# update all packages in the app- npm i [package]@[version] // install specific version of a package
npm ls @progress/kendo-angular-scheduler
// show version of a packagenpm i --package-lock-only
// only createpackage-lock.json
file
npm i -g npm-install-peers
npm-install-peers
npm i @angular/cli@latest
// install latest version of angular cli
tsc -v
// show typescript version
git config --global user.email "your github login email address"
// set email addressgit config --global user.email
// check email address
- Github: https://github.com/Unitech/pm2
npm i pm2 pm2-logrotate -g
pm2 ls
// list all running applicationspm2 stop EDS4WSserver
pm2 restart EDS4WSserver
pm2 delete EDS4WSserver
pm2 describe EDS4WSserver
pm2 monit
// monitor logs, custom metrics, & application information
pm2 link 90n1bqb6mdqm111 mvp52pu0qi8k4v1 EDS
npm i pm2@latest -g
pm2 update
http-server
[style.height.%]="100"
// full height grid (as long as content)
ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.1 was found instead.
npm i typescript@">=3.4.0 <3.5.0"