feat: implement inventory, product brand, product category, product info, product, role, store, user, and vendor modules with CRUD operations

- Added Create and Update DTOs for Inventory, Product Brand, Product Category, Product Info, Product, Role, Store, User, and Vendor.
- Implemented InventoriesController, ProductBrandsController, ProductCategoriesController, ProductInfoController, ProductsController, RolesController, StoresController, UsersController, and VendorsController with respective CRUD endpoints.
- Developed InventoriesService, ProductBrandsService, ProductCategoriesService, ProductInfoService, ProductsService, RolesService, StoresService, UsersService, and VendorsService to handle business logic.
- Created PrismaModule and PrismaService for database interactions using Prisma with MariaDB adapter.
- Configured application with Swagger for API documentation and added global interceptors for logging and response mapping.
- Established e2e testing setup with Jest for the application.
This commit is contained in:
2025-12-04 21:05:57 +03:30
commit 621e15dd02
98 changed files with 26046 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { CustomersModule } from './customers/customers.module'
import { InventoriesModule } from './inventories/inventories.module'
import { PrismaModule } from './prisma/prisma.module'
import { ProductBrandsModule } from './product-brands/product-brands.module'
import { ProductCategoriesModule } from './product-categories/product-categories.module'
import { ProductInfoModule } from './product-info/product-info.module'
import { ProductsModule } from './products/products.module'
import { RolesModule } from './roles/roles.module'
import { StoresModule } from './stores/stores.module'
import { UsersModule } from './users/users.module'
import { VendorsModule } from './vendors/vendors.module'
@Module({
imports: [
PrismaModule,
UsersModule,
RolesModule,
ProductsModule,
ProductInfoModule,
ProductBrandsModule,
ProductCategoriesModule,
VendorsModule,
CustomersModule,
InventoriesModule,
StoresModule,
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}