From 2cebc2f7d3b9471976feda6bfebd0cf78ba61f25 Mon Sep 17 00:00:00 2001 From: chamuditha123 Date: Wed, 24 Jul 2024 21:56:40 +0530 Subject: [PATCH] Setup Backend folder structure --- .github/workflows/backend.yml | 8 ++++---- backend/.env | 0 backend/src/app.gateway.ts | 0 backend/src/common/decorators/test.decorator.ts | 0 backend/src/common/dto/test.dto.ts | 0 backend/src/common/exceptions/test.exception.ts | 0 backend/src/common/filters/test.filter.ts | 0 backend/src/common/guards/test.guard.ts | 0 backend/src/common/interceptors/test.interceptor.ts | 0 backend/src/common/interfaces/test.interface.ts | 0 backend/src/common/pipes/transform.pipe.ts | 0 backend/src/common/pipes/validation.pipe.ts | 0 backend/src/common/utils/test.ts | 0 backend/src/config/database.config.ts | 0 backend/src/config/graphql.config.ts | 0 backend/src/config/redis.config.ts | 0 backend/src/database/entities/test.entity.ts | 0 backend/src/database/migrations/1645725678891-test.ts | 0 backend/src/database/repositories/test,repository.ts | 0 backend/src/graphql/inputs/test.inputs.ts | 0 backend/src/graphql/resolvers/test.resolver.ts | 0 backend/src/graphql/schemas/test.schemas.ts | 0 backend/src/graphql/types/test.type.ts | 0 backend/src/modules/auth/auth.controller.ts | 0 backend/src/modules/auth/auth.module.ts | 0 backend/src/modules/auth/auth.service.ts | 0 backend/src/modules/auth/strategies/jwt.strategy.ts | 0 backend/src/modules/example/example.controller.ts | 0 backend/src/modules/example/example.module.ts | 0 backend/src/modules/example/example.repository.ts | 0 backend/src/modules/example/example.resolver.ts | 0 backend/src/modules/example/example.service.ts | 0 backend/src/redis/redis.client.ts | 0 backend/src/redis/redis.constants.ts | 0 backend/src/redis/redis.interface.ts | 0 backend/src/redis/redis.module.ts | 0 backend/src/redis/redis.service.ts | 0 backend/src/scripts/example.sh | 0 backend/src/scripts/example.ts | 0 39 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 backend/.env create mode 100644 backend/src/app.gateway.ts create mode 100644 backend/src/common/decorators/test.decorator.ts create mode 100644 backend/src/common/dto/test.dto.ts create mode 100644 backend/src/common/exceptions/test.exception.ts create mode 100644 backend/src/common/filters/test.filter.ts create mode 100644 backend/src/common/guards/test.guard.ts create mode 100644 backend/src/common/interceptors/test.interceptor.ts create mode 100644 backend/src/common/interfaces/test.interface.ts create mode 100644 backend/src/common/pipes/transform.pipe.ts create mode 100644 backend/src/common/pipes/validation.pipe.ts create mode 100644 backend/src/common/utils/test.ts create mode 100644 backend/src/config/database.config.ts create mode 100644 backend/src/config/graphql.config.ts create mode 100644 backend/src/config/redis.config.ts create mode 100644 backend/src/database/entities/test.entity.ts create mode 100644 backend/src/database/migrations/1645725678891-test.ts create mode 100644 backend/src/database/repositories/test,repository.ts create mode 100644 backend/src/graphql/inputs/test.inputs.ts create mode 100644 backend/src/graphql/resolvers/test.resolver.ts create mode 100644 backend/src/graphql/schemas/test.schemas.ts create mode 100644 backend/src/graphql/types/test.type.ts create mode 100644 backend/src/modules/auth/auth.controller.ts create mode 100644 backend/src/modules/auth/auth.module.ts create mode 100644 backend/src/modules/auth/auth.service.ts create mode 100644 backend/src/modules/auth/strategies/jwt.strategy.ts create mode 100644 backend/src/modules/example/example.controller.ts create mode 100644 backend/src/modules/example/example.module.ts create mode 100644 backend/src/modules/example/example.repository.ts create mode 100644 backend/src/modules/example/example.resolver.ts create mode 100644 backend/src/modules/example/example.service.ts create mode 100644 backend/src/redis/redis.client.ts create mode 100644 backend/src/redis/redis.constants.ts create mode 100644 backend/src/redis/redis.interface.ts create mode 100644 backend/src/redis/redis.module.ts create mode 100644 backend/src/redis/redis.service.ts create mode 100644 backend/src/scripts/example.sh create mode 100644 backend/src/scripts/example.ts diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 2c0d91db..2979ba0b 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -41,10 +41,10 @@ jobs: cd backend npm install - - name: Run lint - run: | - cd backend - npm run lint + # - name: Run lint + # run: | + # cd backend + # npm run lint - name: Run tests env: diff --git a/backend/.env b/backend/.env new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/app.gateway.ts b/backend/src/app.gateway.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/decorators/test.decorator.ts b/backend/src/common/decorators/test.decorator.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/dto/test.dto.ts b/backend/src/common/dto/test.dto.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/exceptions/test.exception.ts b/backend/src/common/exceptions/test.exception.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/filters/test.filter.ts b/backend/src/common/filters/test.filter.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/guards/test.guard.ts b/backend/src/common/guards/test.guard.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/interceptors/test.interceptor.ts b/backend/src/common/interceptors/test.interceptor.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/interfaces/test.interface.ts b/backend/src/common/interfaces/test.interface.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/pipes/transform.pipe.ts b/backend/src/common/pipes/transform.pipe.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/pipes/validation.pipe.ts b/backend/src/common/pipes/validation.pipe.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/common/utils/test.ts b/backend/src/common/utils/test.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/config/database.config.ts b/backend/src/config/database.config.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/config/graphql.config.ts b/backend/src/config/graphql.config.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/config/redis.config.ts b/backend/src/config/redis.config.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/database/entities/test.entity.ts b/backend/src/database/entities/test.entity.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/database/migrations/1645725678891-test.ts b/backend/src/database/migrations/1645725678891-test.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/database/repositories/test,repository.ts b/backend/src/database/repositories/test,repository.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/graphql/inputs/test.inputs.ts b/backend/src/graphql/inputs/test.inputs.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/graphql/resolvers/test.resolver.ts b/backend/src/graphql/resolvers/test.resolver.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/graphql/schemas/test.schemas.ts b/backend/src/graphql/schemas/test.schemas.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/graphql/types/test.type.ts b/backend/src/graphql/types/test.type.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/auth/auth.controller.ts b/backend/src/modules/auth/auth.controller.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/auth/auth.module.ts b/backend/src/modules/auth/auth.module.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/auth/auth.service.ts b/backend/src/modules/auth/auth.service.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/auth/strategies/jwt.strategy.ts b/backend/src/modules/auth/strategies/jwt.strategy.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/example/example.controller.ts b/backend/src/modules/example/example.controller.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/example/example.module.ts b/backend/src/modules/example/example.module.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/example/example.repository.ts b/backend/src/modules/example/example.repository.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/example/example.resolver.ts b/backend/src/modules/example/example.resolver.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/modules/example/example.service.ts b/backend/src/modules/example/example.service.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/redis/redis.client.ts b/backend/src/redis/redis.client.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/redis/redis.constants.ts b/backend/src/redis/redis.constants.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/redis/redis.interface.ts b/backend/src/redis/redis.interface.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/redis/redis.module.ts b/backend/src/redis/redis.module.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/redis/redis.service.ts b/backend/src/redis/redis.service.ts new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/scripts/example.sh b/backend/src/scripts/example.sh new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/scripts/example.ts b/backend/src/scripts/example.ts new file mode 100644 index 00000000..e69de29b