A simple E-Commerce Angular 8 application
- Angular-Cli: 8.3.27
- Typescript: 3.5.3
- Node: 11.15.0
- bootstrap: 4.5.0
- Angular Material: 8.2.3
- ngx-translate: 12.1.2
- ngx-toaster: 11.3.3
- Home page with list of products.
- Add items to Cart.
- Hover over cart icon to view items in the cart.
- Each item in cart will have a subtotal and grand total. On clicking checkout a mock of successful order is shown.
- Cart icon show a badge with number of items in cart.
- Mark items as Favorite.
- Hover over Favorite icon to view wish list in a popover.
- Clicking on links in footer will show route change and dummy pages.
- Translation support is added for localization/Internationalization.
- Toaster is added to let user know state of the action performed.
- 'Quantity' key is considered as max number of quantity a product can be added to cart. A info toaster will be shown when it exceeds the limit and the product will not be added to cart.
- State is maintained after the refresh.
-
Navigate to
environment.ts | environment.prod.ts
accordingly -
Change the value of the server to instance uri of backend application
- To run the backend app locally, clone the node.js app from repo and follow the steps from Readme.md
Sample server value in
environment
fileexport const environment = { production: false, server: "http://localhost:3000" };
- To connect to backend app hoisted in glitch online server (http://ngshop.glitch.me/products)
Sample server value in
environment
fileexport const environment = { production: false, server: "https://ngShop.glitch.me" };
- Navigate to
\ngCart
and Runnpm install
. - Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
.
Note: Demo instance is connected to node.js app hoisted in (http://ngshop.glitch.me) and MongoDb hoisted in MongoDB atlas.