Angular Js

Setting up Angular and other stages with CLI (command line interface)

angularimage

To check if Node.js is installed on your computer: node --version
To install Node.js..: npm install nodejs
To check if install?: npm list -g --depth=0

To check if Angular is install?: npm i -g @angular/cli
To install Angular..: npm install -g create-react-app
To delete Angular..: npm uninstall -g create-react-app
To change port: ng serve --port 4200

 
To create an app named sema: ng new ShopApp (l can say routing "yes" or "no" and stylesheet "CSS")
To go to vs code: code .
To start coding: npm run dev
To install routing: npm i react-router-dom
To stand up the app: ng serve

To do "home" component: ng g c home
To install for login: npm i jsonwebtoken and  npm i json-server
Change in ..json: the jsonwebtoken and json-server to devDependencies
look like:
    "json-server": "^0.17.3",
    "jsonwebtoken": "^9.0.0",

add angular.js to:

    "styles": [
    "src/styles.css",
    "node_modules/bootstrap/dist/css/bootstrap.min.css"
    ],


Library:

to install bootstrap: npm i bootstrap


To alert: npm install react-toastify


Comments