This project was generated with Angular CLI version 1.5.0.
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.
dist
folder into linux based Server/etc/nginx/sites-available
and open default
file.root
to the point to dist
folder.location
in the same file to fall back to index.html
if the requested link is not found by changing it to thislocation / {
# First attempt to serve request as file, then
# fall back to displaying index.html.
try_files $uri /index.html;
}
sudo service nginx start
Run ng test
to execute the unit tests via Karma.
Testing guides:
https://codecraft.tv/courses/angular/unit-testing/overview/
https://medium.com/spektrakel-blog/angular-testing-snippets-services-over-http-f1e2c439f1d2
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.