Angular Commands

Angular is a platform for building mobile and desktop web applications. Angular is an app-design framework and development platform for creating efficient and sophisticated single-page apps.

Install Angular
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
// directly open in browser
ng serve –open

npm install
npm install –save @angular-devkit/build-angular

npm update

http://localhost:4200/

Install Json Server
json server
npm i json-server –save
touch server/db.json
json-server –watch server/db.json

if issue then run below comand, to make global
npm install -g json-server

Create component
ng g c admin/dashboard/employee(component name)
ng g c admin/dashboard/employee
ng g c admin/module/add-module –spec=false
ng g c admin/module/edit-module –spec=false

create service
ng g s service name(path)
by default app.module.ts

create interface
ng g i

Uninstall npm
npm uninstall -g angular-cli

Clean npm cache
npm cache clean

Create Build the project
npm run build

References:
https://code.visualstudio.com/docs/?dv=win
https://cli.angular.io/
https://nodejs.org/en/download/