Steps to run this project:
- Run
npm cicommand - Set
restEndpointvalue insrc\environments\environment.tsfile to URL of your REST server - Run
ng servecommand for live reload development. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files.
Docker build command -
docker build -t aunlead/angular-frontend:1.0.0 .Docker run command -
docker run -p 29160:80 -d --name testing-frontend aunlead/angular-frontend:1.0.0Run npm run release for a production build. The build artifacts will be stored in the dist/ directory. During production builds, code linting and unit tests have to pass or build will fail.
Run ng test to execute the unit tests via Karma.
Run npm run test to execute the end-to-end tests via testing-e2e.