This project was generated with Angular CLI version 12.0.0.
Option 1 Run immediate command:
$ docker-compose up
Use flags:
-d
to run in detached mode ( without prints )--build
to build again (good if changes where made)Option 2 Run npm commands:
$ npm run docker-dev
// or
$ npm run docker-dev:build
To remove docker container run: $ npm run docker-dev:rc
To remove docker image run: $ npm run docker-dev:ri
Option 1 (Prefered) Run npm commands:
$ npm run docker-prod
$ npm run docker-prod:build
$ npm run docker-prod:rc
$ npm run docker-prod:ri
Option 2 Run immediate command:
$ docker-compose -f docker-compose.yml up
-d
attribute is for running the services in detached mode. If it is not provided the full logs from all services will be printed on the screen.$ docker-compose up
$ docker-compose down
$ docker-compose start angular-frontend
$ docker-compose stop angular-frontend
$ docker-compose restart angular-frontend
#Angular
Run npm start
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.
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 Overview and Command Reference page.
Run docker build -t angular-frontend .
Run docker run -d -p 80:80 angular-frontent
or use Docker Desktop and run the angular-frontend
image from there.
Command parameters:
-d
to run in detached mode-p
to map container port to machine port