- node & npm
- angular cli:
npm install -g @angular/cli
More info: https://github.com/angular/angular-cli#angular-cli
Run ng serve -aot
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 -aot
to build the project. The build artifacts will be stored in the docs
directory. Use the -prod
flag for a production build.
Usually this is not needed, since the build server is doing this automatically after code is pushed.
If you do not wish to install npm, node and angular cli locally on your machine, Docker can be used instead.
Make sure you have docker installed: https://docs.docker.com/engine/installation/#desktop
- Dev server: sh docker/serve.sh
- Build: sh docker/build.sh
- Bash: sh docker/bash.sh