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.
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.
ng build:dev
ng build:test
ng build:prod
Run ng test
to execute the unit tests via Karma + Puppeteer.
yarn test-headless
to test in a Docker & CI environments
To provide deployment stage provide environment as :
--build-arg env=dev
dev
test
prod
docker build --build-arg env=dev -t semyonic/commerce-cart-app .
docker-compose up dev.web
docker-compose up test.web
docker-compose up prod.web