Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
134 lines (90 loc) · 4.11 KB

INSTALL.md

File metadata and controls

executable file
·
134 lines (90 loc) · 4.11 KB

Xinthose Installation

Angular 8

Installation

Create App (client directory)

  • ng new angular-cpp-websocket --style=scss --enableIvy=false --routing=true

Angular Generate Commands

  • 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

General

  • npm i -g @angular/cli
  • npm i rxjs rxjs-compat @angular/http

Kendo-UI (Progress)

  • ng add @progress/kendo-angular-buttons @progress/kendo-angular-dropdowns @progress/kendo-data-query
  • npm i @progress/kendo-theme-material

MDBootstrap Pro

Websocket/email server using socket.io (server directory)

C++

Commands -------------------------------------------------------------------------------------------------------------------------

Angular Commands (ng)

  • ng --version // show angular version
  • ng update --all --force // update all angular packages (ignore peer dependency errors)
  • ng build --prod --aot // build for production
  • ng serve --host 0.0.0.0 // allow outside PC's access to the app

Kendo Node.js commands

  • ncu -u -f /^@progress/ // check progress widget versions

Node Commands

  • node -v // show node version

NPM Commands (Node Package Manager)

  • npm -v // show npm version
  • npm i -g npm // update npm version
  • npm 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 package
  • npm i --package-lock-only // only create package-lock.json file

Install dependencies

  • npm i -g npm-install-peers
  • npm-install-peers
  • npm i @angular/cli@latest // install latest version of angular cli

Typescript Commands

  • tsc -v // show typescript version

Github

  • git config --global user.email "your github login email address" // set email address
  • git config --global user.email // check email address

pm2

  • Github: https://github.com/Unitech/pm2
  • npm i pm2 pm2-logrotate -g
  • pm2 ls // list all running applications
  • pm2 stop EDS4WSserver
  • pm2 restart EDS4WSserver
  • pm2 delete EDS4WSserver
  • pm2 describe EDS4WSserver
  • pm2 monit // monitor logs, custom metrics, & application information
  • pm2 link 90n1bqb6mdqm111 mvp52pu0qi8k4v1 EDS

Update pm2

  • npm i pm2@latest -g
  • pm2 update

Other

  • http-server

Notes

  • [style.height.%]="100" // full height grid (as long as content)

Troubleshooting

  • 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"