/sample-angular-docker-app

Primary LanguageHTMLApache License 2.0Apache-2.0

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

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.

Running unit tests

Run ng test --watch=false to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Docker Build Image

Run ./buildApp.sh to build the docker image. Use -prod argument to build the production nginx image (uses Dockerfile-prod)

Docker Container Run

Run ./startApp.sh to start the docker container on port 4200. Use -prod argument to start the production nginx based container on port 80.

Stop Docker Container

Run ./stopApp.sh to stop the currently running docker container.

Deploy the Docker container to ECR

TBD...