├── .env ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── README.md ├── db ├── data-source.ts └── migrations │ ├── 1682454195501-initial.ts │ ├── 1682626336248-addTBL_category.ts │ ├── 1682841018489-addTBl_products.ts │ ├── 1682959633169-AddTBL_reviews.ts │ ├── 1687794738021-Add_tbl_orders_op_shipping.ts │ └── 1687807775751-chng_tbl_user_order.ts ├── nest-cli.json ├── package.json ├── src ├── app.module.ts ├── categories │ ├── categories.controller.ts │ ├── categories.module.ts │ ├── categories.service.ts │ ├── dto │ │ ├── create-category.dto.ts │ │ └── update-category.dto.ts │ └── entities │ │ └── category.entity.ts ├── main.ts ├── orders │ ├── dto │ │ ├── create-order.dto.ts │ │ ├── create-shipping.dto.ts │ │ ├── ordered-products.dto.ts │ │ ├── update-order-status.dto.ts │ │ └── update-order.dto.ts │ ├── entities │ │ ├── order.entity.ts │ │ ├── orders-products.entity.ts │ │ └── shipping.entity.ts │ ├── enums │ │ └── order-status.enum.ts │ ├── orders.controller.ts │ ├── orders.module.ts │ └── orders.service.ts ├── products │ ├── dto │ │ ├── create-product.dto.ts │ │ ├── products.dto.ts │ │ └── update-product.dto.ts │ ├── entities │ │ └── product.entity.ts │ ├── products.controller.ts │ ├── products.module.ts │ └── products.service.ts ├── reviews │ ├── dto │ │ ├── create-review.dto.ts │ │ └── update-review.dto.ts │ ├── entities │ │ └── review.entity.ts │ ├── reviews.controller.ts │ ├── reviews.module.ts │ └── reviews.service.ts ├── users │ ├── dto │ │ ├── create-user.dto.ts │ │ ├── update-user.dto.ts │ │ ├── user-signin.dto.ts │ │ └── user-signup.dto.ts │ ├── entities │ │ └── user.entity.ts │ ├── users.controller.ts │ ├── users.module.ts │ └── users.service.ts └── utility │ ├── common │ └── user-roles.enum.ts │ ├── decorators │ ├── authorize-roles.decorator.ts │ └── current-user.decorator.ts │ ├── guards │ ├── authentication.guard.ts │ └── authorization.guard.ts │ ├── interceptors │ └── serialize.interceptor.ts │ └── middlewares │ └── current-user.middleware.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/README.md -------------------------------------------------------------------------------- /db/data-source.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/data-source.ts -------------------------------------------------------------------------------- /db/migrations/1682454195501-initial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1682454195501-initial.ts -------------------------------------------------------------------------------- /db/migrations/1682626336248-addTBL_category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1682626336248-addTBL_category.ts -------------------------------------------------------------------------------- /db/migrations/1682841018489-addTBl_products.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1682841018489-addTBl_products.ts -------------------------------------------------------------------------------- /db/migrations/1682959633169-AddTBL_reviews.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1682959633169-AddTBL_reviews.ts -------------------------------------------------------------------------------- /db/migrations/1687794738021-Add_tbl_orders_op_shipping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1687794738021-Add_tbl_orders_op_shipping.ts -------------------------------------------------------------------------------- /db/migrations/1687807775751-chng_tbl_user_order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/db/migrations/1687807775751-chng_tbl_user_order.ts -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/package.json -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/categories/categories.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/categories.controller.ts -------------------------------------------------------------------------------- /src/categories/categories.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/categories.module.ts -------------------------------------------------------------------------------- /src/categories/categories.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/categories.service.ts -------------------------------------------------------------------------------- /src/categories/dto/create-category.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/dto/create-category.dto.ts -------------------------------------------------------------------------------- /src/categories/dto/update-category.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/dto/update-category.dto.ts -------------------------------------------------------------------------------- /src/categories/entities/category.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/categories/entities/category.entity.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/orders/dto/create-order.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/dto/create-order.dto.ts -------------------------------------------------------------------------------- /src/orders/dto/create-shipping.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/dto/create-shipping.dto.ts -------------------------------------------------------------------------------- /src/orders/dto/ordered-products.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/dto/ordered-products.dto.ts -------------------------------------------------------------------------------- /src/orders/dto/update-order-status.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/dto/update-order-status.dto.ts -------------------------------------------------------------------------------- /src/orders/dto/update-order.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/dto/update-order.dto.ts -------------------------------------------------------------------------------- /src/orders/entities/order.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/entities/order.entity.ts -------------------------------------------------------------------------------- /src/orders/entities/orders-products.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/entities/orders-products.entity.ts -------------------------------------------------------------------------------- /src/orders/entities/shipping.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/entities/shipping.entity.ts -------------------------------------------------------------------------------- /src/orders/enums/order-status.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/enums/order-status.enum.ts -------------------------------------------------------------------------------- /src/orders/orders.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/orders.controller.ts -------------------------------------------------------------------------------- /src/orders/orders.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/orders.module.ts -------------------------------------------------------------------------------- /src/orders/orders.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/orders/orders.service.ts -------------------------------------------------------------------------------- /src/products/dto/create-product.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/dto/create-product.dto.ts -------------------------------------------------------------------------------- /src/products/dto/products.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/dto/products.dto.ts -------------------------------------------------------------------------------- /src/products/dto/update-product.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/dto/update-product.dto.ts -------------------------------------------------------------------------------- /src/products/entities/product.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/entities/product.entity.ts -------------------------------------------------------------------------------- /src/products/products.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/products.controller.ts -------------------------------------------------------------------------------- /src/products/products.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/products.module.ts -------------------------------------------------------------------------------- /src/products/products.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/products/products.service.ts -------------------------------------------------------------------------------- /src/reviews/dto/create-review.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/dto/create-review.dto.ts -------------------------------------------------------------------------------- /src/reviews/dto/update-review.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/dto/update-review.dto.ts -------------------------------------------------------------------------------- /src/reviews/entities/review.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/entities/review.entity.ts -------------------------------------------------------------------------------- /src/reviews/reviews.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/reviews.controller.ts -------------------------------------------------------------------------------- /src/reviews/reviews.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/reviews.module.ts -------------------------------------------------------------------------------- /src/reviews/reviews.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/reviews/reviews.service.ts -------------------------------------------------------------------------------- /src/users/dto/create-user.dto.ts: -------------------------------------------------------------------------------- 1 | export class CreateUserDto {} 2 | -------------------------------------------------------------------------------- /src/users/dto/update-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/dto/update-user.dto.ts -------------------------------------------------------------------------------- /src/users/dto/user-signin.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/dto/user-signin.dto.ts -------------------------------------------------------------------------------- /src/users/dto/user-signup.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/dto/user-signup.dto.ts -------------------------------------------------------------------------------- /src/users/entities/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/entities/user.entity.ts -------------------------------------------------------------------------------- /src/users/users.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/users.controller.ts -------------------------------------------------------------------------------- /src/users/users.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/users.module.ts -------------------------------------------------------------------------------- /src/users/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/users/users.service.ts -------------------------------------------------------------------------------- /src/utility/common/user-roles.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/common/user-roles.enum.ts -------------------------------------------------------------------------------- /src/utility/decorators/authorize-roles.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/decorators/authorize-roles.decorator.ts -------------------------------------------------------------------------------- /src/utility/decorators/current-user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/decorators/current-user.decorator.ts -------------------------------------------------------------------------------- /src/utility/guards/authentication.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/guards/authentication.guard.ts -------------------------------------------------------------------------------- /src/utility/guards/authorization.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/guards/authorization.guard.ts -------------------------------------------------------------------------------- /src/utility/interceptors/serialize.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/interceptors/serialize.interceptor.ts -------------------------------------------------------------------------------- /src/utility/middlewares/current-user.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/src/utility/middlewares/current-user.middleware.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bilchalan/nestjs-bazar-api/HEAD/tsconfig.json --------------------------------------------------------------------------------