noteId | tags |
---|---|
3c6be7d062ec11ea82776f805b338ba9 |
This project was generated with Angular CLI version 9.0.3.
Clone this project to your local disk. If you do not have Angular CLI, please follow the these steps :
- Redirect to the project folder
- Open Node.js command prompt for easier use
- Run the following command to install : npm install -g @angular/cli
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.
If the server fails to start, specifically with the following messages :
"An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'"
Follow the following commands to fix it :
npm install
ng update
npm update
After finishing all commands above, re-run the ng serve
to start your dev server.
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.