├── src ├── assets │ ├── .gitkeep │ └── images │ │ ├── macbook.jpg │ │ ├── package.svg │ │ └── world.svg ├── app │ ├── app.component.css │ ├── auth │ │ ├── index.component.scss │ │ ├── login │ │ │ ├── login.component.css │ │ │ ├── login.component.html │ │ │ └── login.component.ts │ │ ├── profile │ │ │ ├── profile.component.css │ │ │ ├── profile.component.ts │ │ │ ├── profile.component.spec.ts │ │ │ └── profile.component.html │ │ ├── register │ │ │ ├── register.component.css │ │ │ ├── register.component.spec.ts │ │ │ ├── register.component.html │ │ │ └── register.component.ts │ │ ├── index.component.ts │ │ ├── auth.routing.ts │ │ ├── auth.module.ts │ │ └── index.component.html │ ├── components │ │ ├── home │ │ │ ├── home.component.css │ │ │ ├── home.component.spec.ts │ │ │ ├── home.component.ts │ │ │ └── home.component.html │ │ ├── about │ │ │ ├── about.component.css │ │ │ ├── about.component.html │ │ │ ├── about.component.ts │ │ │ └── about.component.spec.ts │ │ └── page-not-found │ │ │ ├── page-not-found.component.ts │ │ │ ├── page-not-found.component.html │ │ │ └── page-not-found.component.scss │ ├── cart │ │ ├── cart-summary │ │ │ ├── cart-summary.component.css │ │ │ ├── cart-summary.component.html │ │ │ └── cart-summary.component.ts │ │ ├── cart-summary-actions │ │ │ ├── cart-summary-actions.component.css │ │ │ ├── cart-summary-actions.component.html │ │ │ └── cart-summary-actions.component.ts │ │ ├── my-cart │ │ │ ├── my-cart.component.css │ │ │ ├── my-cart.component.ts │ │ │ └── my-cart.component.html │ │ ├── cart.routing.ts │ │ └── cart.module.ts │ ├── orders │ │ ├── order-create │ │ │ ├── checkout.component.css │ │ │ ├── checkout.component.spec.ts │ │ │ ├── checkout.component.ts │ │ │ └── checkout.component.html │ │ ├── order-list │ │ │ ├── order-list.component.css │ │ │ ├── order-list.component.html │ │ │ ├── order-list.component.spec.ts │ │ │ └── order-list.component.ts │ │ ├── order-details │ │ │ ├── order-details.component.css │ │ │ ├── order-details.component.html │ │ │ ├── order-details.component.spec.ts │ │ │ └── order-details.component.ts │ │ ├── orders.routing.ts │ │ └── orders.module.ts │ ├── shared │ │ ├── components │ │ │ ├── footer │ │ │ │ ├── footer.component.css │ │ │ │ ├── footer.component.html │ │ │ │ ├── footer.component.ts │ │ │ │ └── footer.component.spec.ts │ │ │ ├── header │ │ │ │ ├── header.component.css │ │ │ │ ├── header.component.spec.ts │ │ │ │ ├── header.component.ts │ │ │ │ └── header.component.html │ │ │ ├── carousel │ │ │ │ ├── carousel.component.css │ │ │ │ ├── carousel.component.ts │ │ │ │ ├── carousel.component.spec.ts │ │ │ │ └── carousel.component.html │ │ │ └── pagination │ │ │ │ ├── pagination.component.css │ │ │ │ ├── pagination.component.spec.ts │ │ │ │ ├── pagination.component.ts │ │ │ │ └── pagination.component.html │ │ ├── dtos │ │ │ ├── requests │ │ │ │ ├── base.dto.ts │ │ │ │ ├── create_order.dto.ts │ │ │ │ ├── login.dto.ts │ │ │ │ └── register.dto.ts │ │ │ ├── local │ │ │ │ ├── products.dto.ts │ │ │ │ ├── notifications.dto.ts │ │ │ │ └── base.ts │ │ │ └── responses │ │ │ │ ├── auth │ │ │ │ ├── auth-info.dto.ts │ │ │ │ └── login-success.dto.ts │ │ │ │ ├── order_items │ │ │ │ └── order-item.dto.ts │ │ │ │ ├── orders │ │ │ │ ├── order-list.dto.ts │ │ │ │ └── order-details.response.ts │ │ │ │ ├── users │ │ │ │ └── auth.dto.ts │ │ │ │ ├── pages │ │ │ │ └── home.dto.ts │ │ │ │ ├── shared │ │ │ │ ├── base.dto.ts │ │ │ │ └── page-meta.dto.ts │ │ │ │ ├── comments │ │ │ │ └── comment-submitted.response.ts │ │ │ │ ├── addresses │ │ │ │ └── addresses.dto.ts │ │ │ │ └── products │ │ │ │ └── products.dto.ts │ │ ├── models │ │ │ ├── cart-item.model.ts │ │ │ ├── category.model.ts │ │ │ ├── tag.model.ts │ │ │ ├── wishlist.model.ts │ │ │ ├── address.model.ts │ │ │ ├── order.model.ts │ │ │ ├── shopping-cart.model.ts │ │ │ ├── comment.model.ts │ │ │ ├── contact_info.model.ts │ │ │ ├── user.ts │ │ │ └── product.ts │ │ ├── services │ │ │ ├── interfaces │ │ │ │ ├── IStorageService.ts │ │ │ │ └── IAuthService.ts │ │ │ ├── addresses.service.spec.ts │ │ │ ├── local-storage.service.ts │ │ │ ├── notification.service.ts │ │ │ ├── addresses.service.ts │ │ │ ├── pages.service.ts │ │ │ ├── orders.service.ts │ │ │ ├── users.service.ts │ │ │ ├── shopping-cart.service.ts │ │ │ └── products.service.ts │ │ ├── guards │ │ │ ├── admin.guard.ts │ │ │ └── authentication.guard.ts │ │ ├── utils │ │ │ └── net.utils.ts │ │ ├── shared.module.ts │ │ └── interceptors │ │ │ └── jwt-http.interceptor.ts │ ├── addresses │ │ ├── address-list │ │ │ ├── address-list.component.css │ │ │ ├── address-list.component.html │ │ │ ├── address-list.component.spec.ts │ │ │ └── address-list.component.ts │ │ ├── address-create │ │ │ ├── address-create.component.css │ │ │ ├── address-create.component.html │ │ │ ├── address-create.component.ts │ │ │ └── address-create.component.spec.ts │ │ ├── address-details │ │ │ ├── address-details.component.css │ │ │ ├── address-details.component.html │ │ │ ├── address-details.component.ts │ │ │ └── address-details.component.spec.ts │ │ └── addresses.module.ts │ ├── products │ │ ├── product-list │ │ │ ├── product-list.component.css │ │ │ ├── product-list.component.spec.ts │ │ │ ├── product-list.component.ts │ │ │ └── product-list.component.html │ │ ├── product-create │ │ │ ├── product-create.component.css │ │ │ ├── product-create.component.spec.ts │ │ │ ├── product-create.component.html │ │ │ └── product-create.component.ts │ │ ├── product-details │ │ │ ├── product-details.component.css │ │ │ ├── product-details.component.spec.ts │ │ │ ├── product-details.component.html │ │ │ └── product-details.component.ts │ │ ├── products.routing.ts │ │ └── products.module.ts │ ├── app.component.html │ ├── app.component.ts │ ├── app-routing.module.ts │ ├── app.component.spec.ts │ └── app.module.ts ├── favicon.ico ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── tsconfig.app.json ├── tsconfig.spec.json ├── tslint.json ├── main.ts ├── browserslist ├── test.ts ├── karma.conf.js ├── index.html ├── polyfills.ts └── styles.css ├── e2e ├── src │ ├── app.po.ts │ └── app.e2e-spec.ts ├── tsconfig.e2e.json └── protractor.conf.js ├── .editorconfig ├── tsconfig.json ├── .gitignore ├── package.json ├── tslint.json ├── angular.json └── README.md /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/auth/index.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/auth/login/login.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/auth/profile/profile.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/components/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/auth/register/register.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/components/about/about.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/cart/cart-summary/cart-summary.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/orders/order-create/checkout.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/orders/order-list/order-list.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/footer/footer.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/header/header.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/addresses/address-list/address-list.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/orders/order-details/order-details.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/products/product-list/product-list.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/carousel/carousel.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/footer/footer.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/addresses/address-create/address-create.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/addresses/address-details/address-details.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/products/product-create/product-create.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/products/product-details/product-details.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/shared/components/pagination/pagination.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/cart/cart-summary-actions/cart-summary-actions.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/addresses/address-create/address-create.component.html: -------------------------------------------------------------------------------- 1 | images 2 | -------------------------------------------------------------------------------- /src/app/components/about/about.component.html: -------------------------------------------------------------------------------- 1 |
2 | about works! 3 |
4 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melardev/AngularEcommerceRestApi/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/app/addresses/address-details/address-details.component.html: -------------------------------------------------------------------------------- 1 |2 | address-details works! 3 |
4 | -------------------------------------------------------------------------------- /src/assets/images/macbook.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/melardev/AngularEcommerceRestApi/HEAD/src/assets/images/macbook.jpg -------------------------------------------------------------------------------- /src/app/shared/dtos/requests/base.dto.ts: -------------------------------------------------------------------------------- 1 | export class PaginatedRequestDto { 2 | page: number; 3 | pageSize: number; 4 | } 5 | -------------------------------------------------------------------------------- /src/app/shared/models/cart-item.model.ts: -------------------------------------------------------------------------------- 1 | import {Product} from './product'; 2 | 3 | export class CartItem extends Product { 4 | isInCart = true; 5 | } 6 | -------------------------------------------------------------------------------- /src/app/shared/models/category.model.ts: -------------------------------------------------------------------------------- 1 | export class Category { 2 | id: string; 3 | name: string; 4 | slug: string; 5 | descritpion: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 |
43 | {{description}}
44 |
45 |
46 | {{product.description}}
14 |{{comment.content}}
46 | 48 |46 | 47 | {{ 48 | product.name }} 49 | 50 |
51 | 52 |{{ product.description }} 53 |
54 | 55 | 71 | 72 |31 | 32 | {{ 33 | category.name }} 34 | 35 |
36 | 37 |{{ category.descritpion }} 38 |
39 | 40 | 45 | 46 |85 | 86 | {{ 87 | tag.name }} 88 | 89 |
90 | 91 |{{ tag.description }} 92 |
93 | 94 | 99 | 100 |