This project was generated with Angular CLI version 7.3.3.
Angular requires Node.js version 10.x.
-
Run
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.shadd the PPA to the system to install Nodejs on Ubuntu. -
Run
sudo bash nodesource_setup.sh -
Run
sudo apt-get install nodejsto install Node.js-To check your version, run node -v in a terminal/console window.
You’ll also want to also install npm, the Node.js package manager. You can do this by typing :
-
Run
sudo apt install npmto install modules and packages to use with Node.js-To check your version, run npm-v in a terminal/console window.
-
Run
sudo npm install -g @angular/cli@to install the Angular CLI -
Run
npm install --save-dev @angular-devkit/build-angularto install @angular-devkit/build-angular as dev dependency. This package is newly introduced in Angular 6.0
The Angular CLI includes a server, so that you can easily build and serve your app locally.
-
Run
cd cdcs_angular_demo_frontend/src/appto go to the workspace folder (app) -
Run
ng serve --opento launch the server and open the browser to http://localhost:4200/.
The ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.