/commerce-cart-app

Basic shopping cart challenge for Migros

Primary LanguageTypeScript

commerce-cart-app

Build Status Docker Cloud Build Status

Development

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/commerce-app/ directory. Use the --prod flag for a production build.

Available Commands
  • ng build:dev
  • ng build:test
  • ng build:prod

Running unit tests

Run ng test to execute the unit tests via Karma + Puppeteer.

Available Commands
  • yarn test-headless to test in a Docker & CI environments

Docker Environments

To provide deployment stage provide environment as : --build-arg env=dev

Available Environments

  • dev
  • test
  • prod

Building From Dockerfile

docker build --build-arg env=dev -t semyonic/commerce-cart-app .

Running Image With Environments

  • docker-compose up dev.web
  • docker-compose up test.web
  • docker-compose up prod.web