This project was generated with Angular CLI version 7.0.6.
- run
nvm use
- run
npm install
After running npm install
run npm run start
This will start start a dev server to serve the application and a proxy will forward them to the correct server. For details on the proxy see _proxy.config.json
Navigate to http://localhost:4100/
To view the application. The app will automatically reload if you change any of the source files.
Note: ng serve
will start the server but will not run a full build with lint checks but npm run start
does this for you.
Code coverage is set to 100% coverage. I have set up the project to have a git hook to do code coverage check prior pushing changes to branch
-
npm test
This will run all unit tests in a single run and produce a coverage report. This is the command used in bamboo jobs
-
ng test
This will run all unit tests and watch for changes. See ng test wiki page for more info
Coverage and Unit test reports sit in reports/test/
ng e2e
This will execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via npm start
.
ng build
To build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.