This project was generated with Angular CLI version 7.0.6.
- Node.js LTS (v10.13.0)
- npm latest (v6.4.1)
- http-server npm module (
npm i -g http-server
)
Keep the modules up to date with npm install
before building the application
Run ng serve --open
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
This is also a Progressive Web App (PWA) with dedicated service workers. Service workers do not function in an angular development environment. To test the PWA functionality execute the following steps:
- Build a production build of the app with
ng build --prod
- Start a http server with the http-server npm package
http-server -p 8080 -c-1 dist/frontend-angular
- Navigate to
localhost:8080
common mistakes: old cache -> clear before throwing your laptop out of a window because something is not working as intended
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.