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
yarnornpm installto install dependencies; -
Run
yarn build:ssrornpm run build:ssrto generate dist/;server files; -
Run
yarn serve:ssrornpm 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.