Skip to main content
  1. All Posts/

ng-ecommerce

eCommerce TypeScript

šŸ›’ NgEcommerce

This project was generated with Angular CLI version 11.1.2.
It simulates a micro responsive ecommerce web app, with products list and checkout page.

āœØ Features

  • Add products to cart;
  • Filter products by name and price, ascending or descending;
  • Change products quantity in cart;
  • Remove products from cart;

šŸƒā€ā™‚ļø Running project

  • Clone this repository and enter into its folder;
  • Run yarn or npm install to install dependencies;
  • Run yarn build:ssr or npm run build:ssr to generate dist/;server files;
  • Run yarn serve:ssr or npm run serve:ssr;

ā” What I used in this project

šŸ’» Development server

Run yarn start or npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

šŸ”Ø Build

Run yarn build or npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Also, you can run yarn build:ssr or npm run build:ssr to build the project with SSR.

šŸš¦ Running unit tests

Run yarn test or npm run test to execute the unit tests via Jest.
Run yarn test:coverage or npm run test:coverage to generate coverage report.