Return to site

Angular: Creating a project fron scratch with command lines

ยท github,coding,fullstack
  • // ๐’„๐’“๐’†๐’‚๐’•๐’† ๐’‘๐’“๐’๐’‹๐’†๐’„๐’•
    ng new myProject
  • // ๐’„๐’‰๐’‚๐’๐’ˆ๐’† ๐’•๐’ ๐’•๐’‰๐’† ๐’๐’†๐’˜ ๐’…๐’Š๐’“๐’†๐’„๐’•๐’๐’“๐’š
    cd .\myProject\
  • // ๐’Š๐’๐’”๐’•๐’‚๐’๐’ ๐’‚๐’๐’ˆ๐’–๐’๐’‚๐’“ ๐‘ช๐‘ณ๐‘ฐ
    npm install --save @angular/cli --f
  • // ๐’„๐’“๐’†๐’‚๐’•๐’† ๐’‚ ๐’Ž๐’๐’…๐’–๐’๐’†
    ng g m myModule
  • // ๐’„๐’‰๐’‚๐’๐’ˆ๐’† ๐’•๐’ ๐’๐’†๐’˜ ๐’Ž๐’๐’…๐’–๐’๐’† ๐’…๐’Š๐’“๐’†๐’„๐’•๐’๐’“๐’š
    cd src/app/my-module
  • // ๐’„๐’“๐’†๐’‚๐’•๐’† ๐’‚ ๐’๐’†๐’˜ ๐’„๐’๐’Ž๐’‘๐’๐’๐’†๐’๐’• ๐’Š๐’ ๐’•๐’‰๐’† ๐’๐’†๐’˜ ๐’Ž๐’๐’…๐’–๐’๐’†
    ng g c myComponent
  • // ๐’„๐’“๐’†๐’‚๐’•๐’† ๐’‚ ๐’๐’†๐’˜ ๐’”๐’†๐’“๐’—๐’Š๐’„๐’† ๐’Š๐’ ๐’•๐’‰๐’† ๐’๐’†๐’˜ ๐’Ž๐’๐’…๐’–๐’๐’†
    ng g s myService
  • // ๐’Š๐’๐’”๐’•๐’‚๐’๐’ ๐’ƒ๐’๐’๐’•๐’”๐’•๐’“๐’‚๐’‘
    npm install --save @ng-bootstrap/ng-bootstrap --f
  • // ๐’Š๐’๐’”๐’•๐’‚๐’๐’ ๐’‚๐’๐’
    npm i --f
  • // ๐’”๐’•๐’‚๐’“๐’• ๐’”๐’†๐’“๐’—๐’†๐’“
    ng serve

 

#startingNewProject #angular #commands