-
Couldn't load subscription status.
- Fork 0
Environment Setup
-
Install NodeJS on your local machine. Node version here: Node Package
-
Make sure that your global node modules, and node binaries are in your PATH:
- Right click on Computer (My PC in Win10), and select Properties to open the System window.
- On the side panel of the System window click
Advanced System Settingsto open System Properties. - On the advanced tab of System Properties click
Environment Variables. - Find your
Pathvariable, click edit, and add the npm bin folder.
For the Node version, that path is as follows:C:\Users\cmurphy\AppData\Roaming\npm
Replace
cmurphywith your username. You may need to restart your console for your path changes to take effect. -
Install globally the Gulp CLI package
$ npm i -g gulp-cli
-
To get things rolling:
$ sudo apt-get install nodejs npmIf you need to manage multiple node versions at the same time, check out nvm.
-
Install globally the Gulp CLI package
$ npm i -g gulp-cli
-
Install & Run a local instance(s) of the Website:
npm install -g @angular/cli ng new TestApp cd TestApp ng serve -
Go to http://localhost:4200/ with your browser and ensure that you have accepted the certificate that it is asking for.
-
Now if you have a look at the source code of the default application, you can see that you have a index.html page where you have loaded the app-root component. By default the application has only the app-root component which is defined inside the src/app folder.
-
Install & Run a local instance(s) of the Website:
npm install -g @angular/cli ng new TestApp cd TestApp ng serve -
Go to http://localhost:4200/ with your browser and ensure that you have accepted the certificate that it is asking for.
-
Now if you have a look at the source code of the default application, you can see that you have a index.html page where you have the loaded the app-root component. By default the application has only the app-root component which is defined inside the src/app folder.