diff --git a/.github/workflows/unit-tests.js.yml b/.github/workflows/unit-tests.js.yml index 1a562a9..fc7fc94 100644 --- a/.github/workflows/unit-tests.js.yml +++ b/.github/workflows/unit-tests.js.yml @@ -8,6 +8,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + working-directory: ./snack-bar-api strategy: matrix: @@ -16,15 +18,20 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + submodules: true - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' + cache-dependency-path: snack-bar-api/package-lock.json - name: Install dependencies run: npm install - + working-directory: ${{env.working-directory}} + - name: Run unit tests run: npm run test + working-directory: ${{env.working-directory}} diff --git a/.gitignore b/.gitignore index 4b56acf..d7303cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # compiled output -/dist -/node_modules -/build +*/dist +*/node_modules +*/build # Logs logs diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..691d0a1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "payment-webhook"] + path = payment-webhook + url = https://github.com/fmo00/payment-webhook.git diff --git a/payment-webhook b/payment-webhook new file mode 160000 index 0000000..cd72877 --- /dev/null +++ b/payment-webhook @@ -0,0 +1 @@ +Subproject commit cd72877ba5b06f3b9b067f5e4a690b8538b5493d diff --git a/.eslintrc.js b/snack-bar-api/.eslintrc.js similarity index 100% rename from .eslintrc.js rename to snack-bar-api/.eslintrc.js diff --git a/.prettierignore b/snack-bar-api/.prettierignore similarity index 100% rename from .prettierignore rename to snack-bar-api/.prettierignore diff --git a/.prettierrc b/snack-bar-api/.prettierrc similarity index 100% rename from .prettierrc rename to snack-bar-api/.prettierrc diff --git a/Dockerfile b/snack-bar-api/Dockerfile similarity index 100% rename from Dockerfile rename to snack-bar-api/Dockerfile diff --git a/docker-compose.yaml b/snack-bar-api/docker-compose.yaml similarity index 100% rename from docker-compose.yaml rename to snack-bar-api/docker-compose.yaml diff --git a/docs/ER.plantuml b/snack-bar-api/docs/ER.plantuml similarity index 100% rename from docs/ER.plantuml rename to snack-bar-api/docs/ER.plantuml diff --git a/docs/ER.png b/snack-bar-api/docs/ER.png similarity index 100% rename from docs/ER.png rename to snack-bar-api/docs/ER.png diff --git a/env/local.env b/snack-bar-api/env/local.env similarity index 100% rename from env/local.env rename to snack-bar-api/env/local.env diff --git a/infra/k8s/api-deployment.yaml b/snack-bar-api/infra/k8s/api-deployment.yaml similarity index 100% rename from infra/k8s/api-deployment.yaml rename to snack-bar-api/infra/k8s/api-deployment.yaml diff --git a/infra/k8s/api-service.yaml b/snack-bar-api/infra/k8s/api-service.yaml similarity index 100% rename from infra/k8s/api-service.yaml rename to snack-bar-api/infra/k8s/api-service.yaml diff --git a/infra/k8s/db-deployment.yaml b/snack-bar-api/infra/k8s/db-deployment.yaml similarity index 100% rename from infra/k8s/db-deployment.yaml rename to snack-bar-api/infra/k8s/db-deployment.yaml diff --git a/infra/k8s/db-pv.yaml b/snack-bar-api/infra/k8s/db-pv.yaml similarity index 100% rename from infra/k8s/db-pv.yaml rename to snack-bar-api/infra/k8s/db-pv.yaml diff --git a/infra/k8s/db-pvc.yaml b/snack-bar-api/infra/k8s/db-pvc.yaml similarity index 100% rename from infra/k8s/db-pvc.yaml rename to snack-bar-api/infra/k8s/db-pvc.yaml diff --git a/infra/k8s/db-service.yaml b/snack-bar-api/infra/k8s/db-service.yaml similarity index 100% rename from infra/k8s/db-service.yaml rename to snack-bar-api/infra/k8s/db-service.yaml diff --git a/infra/k8s/hpa.yaml b/snack-bar-api/infra/k8s/hpa.yaml similarity index 100% rename from infra/k8s/hpa.yaml rename to snack-bar-api/infra/k8s/hpa.yaml diff --git a/infra/k8s/metrics.yaml b/snack-bar-api/infra/k8s/metrics.yaml similarity index 100% rename from infra/k8s/metrics.yaml rename to snack-bar-api/infra/k8s/metrics.yaml diff --git a/infra/k8s/migration-job.yaml b/snack-bar-api/infra/k8s/migration-job.yaml similarity index 100% rename from infra/k8s/migration-job.yaml rename to snack-bar-api/infra/k8s/migration-job.yaml diff --git a/infra/k8s/namespace.yaml b/snack-bar-api/infra/k8s/namespace.yaml similarity index 100% rename from infra/k8s/namespace.yaml rename to snack-bar-api/infra/k8s/namespace.yaml diff --git a/nest-cli.json b/snack-bar-api/nest-cli.json similarity index 100% rename from nest-cli.json rename to snack-bar-api/nest-cli.json diff --git a/package-lock.json b/snack-bar-api/package-lock.json similarity index 99% rename from package-lock.json rename to snack-bar-api/package-lock.json index 4ad39dc..578a662 100644 --- a/package-lock.json +++ b/snack-bar-api/package-lock.json @@ -16,7 +16,6 @@ "@prisma/client": "^5.14.0", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", - "dotenv": "^16.4.5", "dotenv-cli": "^7.4.2", "prettier-plugin-organize-imports": "^3.2.4", "reflect-metadata": "^0.2.0", @@ -3178,12 +3177,13 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -4570,10 +4570,11 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -5343,6 +5344,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -8320,6 +8322,7 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, diff --git a/package.json b/snack-bar-api/package.json similarity index 90% rename from package.json rename to snack-bar-api/package.json index 3a8a5cf..9e0d871 100644 --- a/package.json +++ b/snack-bar-api/package.json @@ -23,10 +23,10 @@ "prisma:migrate:local": "dotenv -e ./env/local.env prisma migrate dev --schema=prisma/schema.prisma" }, "dependencies": { - "@nestjs/common": "^10.0.0", - "@nestjs/core": "^10.0.0", - "@nestjs/platform-express": "^10.0.0", - "@nestjs/swagger": "^7.3.1", + "@nestjs/common": "^10.3.10", + "@nestjs/core": "^10.3.10", + "@nestjs/platform-express": "^10.3.10", + "@nestjs/swagger": "^7.4.0", "@prisma/client": "^5.14.0", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", @@ -37,9 +37,9 @@ "swagger-ui-express": "^5.0.0" }, "devDependencies": { - "@nestjs/cli": "^10.0.0", - "@nestjs/schematics": "^10.0.0", - "@nestjs/testing": "^10.0.0", + "@nestjs/cli": "^10.4.2", + "@nestjs/schematics": "^10.1.2", + "@nestjs/testing": "^10.3.10", "@types/express": "^4.17.17", "@types/jest": "^29.5.2", "@types/node": "^20.3.1", diff --git a/prisma/migrations/20240515023111_init_migration/migration.sql b/snack-bar-api/prisma/migrations/20240515023111_init_migration/migration.sql similarity index 100% rename from prisma/migrations/20240515023111_init_migration/migration.sql rename to snack-bar-api/prisma/migrations/20240515023111_init_migration/migration.sql diff --git a/prisma/migrations/20240526153205_orders/migration.sql b/snack-bar-api/prisma/migrations/20240526153205_orders/migration.sql similarity index 100% rename from prisma/migrations/20240526153205_orders/migration.sql rename to snack-bar-api/prisma/migrations/20240526153205_orders/migration.sql diff --git a/prisma/migrations/20240526192321_orders/migration.sql b/snack-bar-api/prisma/migrations/20240526192321_orders/migration.sql similarity index 100% rename from prisma/migrations/20240526192321_orders/migration.sql rename to snack-bar-api/prisma/migrations/20240526192321_orders/migration.sql diff --git a/prisma/migrations/migration_lock.toml b/snack-bar-api/prisma/migrations/migration_lock.toml similarity index 100% rename from prisma/migrations/migration_lock.toml rename to snack-bar-api/prisma/migrations/migration_lock.toml diff --git a/prisma/schema.prisma b/snack-bar-api/prisma/schema.prisma similarity index 100% rename from prisma/schema.prisma rename to snack-bar-api/prisma/schema.prisma diff --git a/src/app.module.ts b/snack-bar-api/src/app.module.ts similarity index 100% rename from src/app.module.ts rename to snack-bar-api/src/app.module.ts diff --git a/src/config/modules/client.module.ts b/snack-bar-api/src/config/modules/client.module.ts similarity index 100% rename from src/config/modules/client.module.ts rename to snack-bar-api/src/config/modules/client.module.ts diff --git a/src/config/modules/order.module.ts b/snack-bar-api/src/config/modules/order.module.ts similarity index 100% rename from src/config/modules/order.module.ts rename to snack-bar-api/src/config/modules/order.module.ts diff --git a/src/config/modules/payment.module.ts b/snack-bar-api/src/config/modules/payment.module.ts similarity index 100% rename from src/config/modules/payment.module.ts rename to snack-bar-api/src/config/modules/payment.module.ts diff --git a/src/config/modules/product.module.ts b/snack-bar-api/src/config/modules/product.module.ts similarity index 100% rename from src/config/modules/product.module.ts rename to snack-bar-api/src/config/modules/product.module.ts diff --git a/src/config/prisma.config.ts b/snack-bar-api/src/config/prisma.config.ts similarity index 100% rename from src/config/prisma.config.ts rename to snack-bar-api/src/config/prisma.config.ts diff --git a/src/core/domain/client/client.entity.ts b/snack-bar-api/src/core/domain/client/client.entity.ts similarity index 100% rename from src/core/domain/client/client.entity.ts rename to snack-bar-api/src/core/domain/client/client.entity.ts diff --git a/src/core/domain/order/order-product.entity.ts b/snack-bar-api/src/core/domain/order/order-product.entity.ts similarity index 100% rename from src/core/domain/order/order-product.entity.ts rename to snack-bar-api/src/core/domain/order/order-product.entity.ts diff --git a/src/core/domain/order/order.entity.ts b/snack-bar-api/src/core/domain/order/order.entity.ts similarity index 100% rename from src/core/domain/order/order.entity.ts rename to snack-bar-api/src/core/domain/order/order.entity.ts diff --git a/src/core/domain/order/status.entity.ts b/snack-bar-api/src/core/domain/order/status.entity.ts similarity index 100% rename from src/core/domain/order/status.entity.ts rename to snack-bar-api/src/core/domain/order/status.entity.ts diff --git a/src/core/domain/payment/payment.entity.ts b/snack-bar-api/src/core/domain/payment/payment.entity.ts similarity index 100% rename from src/core/domain/payment/payment.entity.ts rename to snack-bar-api/src/core/domain/payment/payment.entity.ts diff --git a/src/core/domain/product/category.entity.ts b/snack-bar-api/src/core/domain/product/category.entity.ts similarity index 100% rename from src/core/domain/product/category.entity.ts rename to snack-bar-api/src/core/domain/product/category.entity.ts diff --git a/src/core/domain/product/product.entity.ts b/snack-bar-api/src/core/domain/product/product.entity.ts similarity index 100% rename from src/core/domain/product/product.entity.ts rename to snack-bar-api/src/core/domain/product/product.entity.ts diff --git a/src/core/enum/product/category.enum.ts b/snack-bar-api/src/core/enum/product/category.enum.ts similarity index 100% rename from src/core/enum/product/category.enum.ts rename to snack-bar-api/src/core/enum/product/category.enum.ts diff --git a/src/core/exceptions/custom-exceptions/bad-request.exception.ts b/snack-bar-api/src/core/exceptions/custom-exceptions/bad-request.exception.ts similarity index 100% rename from src/core/exceptions/custom-exceptions/bad-request.exception.ts rename to snack-bar-api/src/core/exceptions/custom-exceptions/bad-request.exception.ts diff --git a/src/core/exceptions/custom-exceptions/internal-server-error.exception.ts b/snack-bar-api/src/core/exceptions/custom-exceptions/internal-server-error.exception.ts similarity index 100% rename from src/core/exceptions/custom-exceptions/internal-server-error.exception.ts rename to snack-bar-api/src/core/exceptions/custom-exceptions/internal-server-error.exception.ts diff --git a/src/core/exceptions/custom-exceptions/not-found.exception.ts b/snack-bar-api/src/core/exceptions/custom-exceptions/not-found.exception.ts similarity index 100% rename from src/core/exceptions/custom-exceptions/not-found.exception.ts rename to snack-bar-api/src/core/exceptions/custom-exceptions/not-found.exception.ts diff --git a/src/core/interactor/port/client/client-reader-service.port.ts b/snack-bar-api/src/core/interactor/port/client/client-reader-service.port.ts similarity index 100% rename from src/core/interactor/port/client/client-reader-service.port.ts rename to snack-bar-api/src/core/interactor/port/client/client-reader-service.port.ts diff --git a/src/core/interactor/port/client/client-writer-service.port.ts b/snack-bar-api/src/core/interactor/port/client/client-writer-service.port.ts similarity index 100% rename from src/core/interactor/port/client/client-writer-service.port.ts rename to snack-bar-api/src/core/interactor/port/client/client-writer-service.port.ts diff --git a/src/core/interactor/port/order/order-reader-service.port.ts b/snack-bar-api/src/core/interactor/port/order/order-reader-service.port.ts similarity index 100% rename from src/core/interactor/port/order/order-reader-service.port.ts rename to snack-bar-api/src/core/interactor/port/order/order-reader-service.port.ts diff --git a/src/core/interactor/port/order/order-writer-service.port.ts b/snack-bar-api/src/core/interactor/port/order/order-writer-service.port.ts similarity index 100% rename from src/core/interactor/port/order/order-writer-service.port.ts rename to snack-bar-api/src/core/interactor/port/order/order-writer-service.port.ts diff --git a/src/core/interactor/port/payment/payment-reader-service.port.ts b/snack-bar-api/src/core/interactor/port/payment/payment-reader-service.port.ts similarity index 100% rename from src/core/interactor/port/payment/payment-reader-service.port.ts rename to snack-bar-api/src/core/interactor/port/payment/payment-reader-service.port.ts diff --git a/src/core/interactor/port/payment/payment-writer-service.port.ts b/snack-bar-api/src/core/interactor/port/payment/payment-writer-service.port.ts similarity index 100% rename from src/core/interactor/port/payment/payment-writer-service.port.ts rename to snack-bar-api/src/core/interactor/port/payment/payment-writer-service.port.ts diff --git a/src/core/interactor/port/product/product-reader-service.port.ts b/snack-bar-api/src/core/interactor/port/product/product-reader-service.port.ts similarity index 100% rename from src/core/interactor/port/product/product-reader-service.port.ts rename to snack-bar-api/src/core/interactor/port/product/product-reader-service.port.ts diff --git a/src/core/interactor/port/product/product-writer-service.port.ts b/snack-bar-api/src/core/interactor/port/product/product-writer-service.port.ts similarity index 100% rename from src/core/interactor/port/product/product-writer-service.port.ts rename to snack-bar-api/src/core/interactor/port/product/product-writer-service.port.ts diff --git a/src/core/interactor/services/client/client-reader.service.ts b/snack-bar-api/src/core/interactor/services/client/client-reader.service.ts similarity index 100% rename from src/core/interactor/services/client/client-reader.service.ts rename to snack-bar-api/src/core/interactor/services/client/client-reader.service.ts diff --git a/src/core/interactor/services/client/client-writer.service.ts b/snack-bar-api/src/core/interactor/services/client/client-writer.service.ts similarity index 100% rename from src/core/interactor/services/client/client-writer.service.ts rename to snack-bar-api/src/core/interactor/services/client/client-writer.service.ts diff --git a/src/core/interactor/services/order/order-reader.service.ts b/snack-bar-api/src/core/interactor/services/order/order-reader.service.ts similarity index 100% rename from src/core/interactor/services/order/order-reader.service.ts rename to snack-bar-api/src/core/interactor/services/order/order-reader.service.ts diff --git a/src/core/interactor/services/order/order-writer.service.ts b/snack-bar-api/src/core/interactor/services/order/order-writer.service.ts similarity index 100% rename from src/core/interactor/services/order/order-writer.service.ts rename to snack-bar-api/src/core/interactor/services/order/order-writer.service.ts diff --git a/src/core/interactor/services/payment/payment-reader.service.ts b/snack-bar-api/src/core/interactor/services/payment/payment-reader.service.ts similarity index 100% rename from src/core/interactor/services/payment/payment-reader.service.ts rename to snack-bar-api/src/core/interactor/services/payment/payment-reader.service.ts diff --git a/src/core/interactor/services/payment/payment-writer.service.ts b/snack-bar-api/src/core/interactor/services/payment/payment-writer.service.ts similarity index 100% rename from src/core/interactor/services/payment/payment-writer.service.ts rename to snack-bar-api/src/core/interactor/services/payment/payment-writer.service.ts diff --git a/src/core/interactor/services/product/product-reader.service.ts b/snack-bar-api/src/core/interactor/services/product/product-reader.service.ts similarity index 100% rename from src/core/interactor/services/product/product-reader.service.ts rename to snack-bar-api/src/core/interactor/services/product/product-reader.service.ts diff --git a/src/core/interactor/services/product/product-writer.service.ts b/snack-bar-api/src/core/interactor/services/product/product-writer.service.ts similarity index 100% rename from src/core/interactor/services/product/product-writer.service.ts rename to snack-bar-api/src/core/interactor/services/product/product-writer.service.ts diff --git a/src/core/repository/client/client.repository.ts b/snack-bar-api/src/core/repository/client/client.repository.ts similarity index 100% rename from src/core/repository/client/client.repository.ts rename to snack-bar-api/src/core/repository/client/client.repository.ts diff --git a/src/core/repository/order/order.respository.ts b/snack-bar-api/src/core/repository/order/order.respository.ts similarity index 100% rename from src/core/repository/order/order.respository.ts rename to snack-bar-api/src/core/repository/order/order.respository.ts diff --git a/src/core/repository/payment/payment.repository.ts b/snack-bar-api/src/core/repository/payment/payment.repository.ts similarity index 100% rename from src/core/repository/payment/payment.repository.ts rename to snack-bar-api/src/core/repository/payment/payment.repository.ts diff --git a/src/core/repository/product/product.repository.ts b/snack-bar-api/src/core/repository/product/product.repository.ts similarity index 100% rename from src/core/repository/product/product.repository.ts rename to snack-bar-api/src/core/repository/product/product.repository.ts diff --git a/src/datasource/adapter/client/client-postgres.adapter.ts b/snack-bar-api/src/datasource/adapter/client/client-postgres.adapter.ts similarity index 100% rename from src/datasource/adapter/client/client-postgres.adapter.ts rename to snack-bar-api/src/datasource/adapter/client/client-postgres.adapter.ts diff --git a/src/datasource/adapter/order/order-postgres.adapter.ts b/snack-bar-api/src/datasource/adapter/order/order-postgres.adapter.ts similarity index 100% rename from src/datasource/adapter/order/order-postgres.adapter.ts rename to snack-bar-api/src/datasource/adapter/order/order-postgres.adapter.ts diff --git a/src/datasource/adapter/payment/payment-postgres.adapter.ts b/snack-bar-api/src/datasource/adapter/payment/payment-postgres.adapter.ts similarity index 100% rename from src/datasource/adapter/payment/payment-postgres.adapter.ts rename to snack-bar-api/src/datasource/adapter/payment/payment-postgres.adapter.ts diff --git a/src/datasource/adapter/product/product-postgres.adapter.ts b/snack-bar-api/src/datasource/adapter/product/product-postgres.adapter.ts similarity index 100% rename from src/datasource/adapter/product/product-postgres.adapter.ts rename to snack-bar-api/src/datasource/adapter/product/product-postgres.adapter.ts diff --git a/src/main.ts b/snack-bar-api/src/main.ts similarity index 100% rename from src/main.ts rename to snack-bar-api/src/main.ts diff --git a/src/transport/config/response-interceptor.ts b/snack-bar-api/src/transport/config/response-interceptor.ts similarity index 100% rename from src/transport/config/response-interceptor.ts rename to snack-bar-api/src/transport/config/response-interceptor.ts diff --git a/src/transport/constant/api-response.constant.ts b/snack-bar-api/src/transport/constant/api-response.constant.ts similarity index 100% rename from src/transport/constant/api-response.constant.ts rename to snack-bar-api/src/transport/constant/api-response.constant.ts diff --git a/src/transport/constant/client.constant.ts b/snack-bar-api/src/transport/constant/client.constant.ts similarity index 100% rename from src/transport/constant/client.constant.ts rename to snack-bar-api/src/transport/constant/client.constant.ts diff --git a/src/transport/constant/order.constant.ts b/snack-bar-api/src/transport/constant/order.constant.ts similarity index 100% rename from src/transport/constant/order.constant.ts rename to snack-bar-api/src/transport/constant/order.constant.ts diff --git a/src/transport/constant/payment.constant.ts b/snack-bar-api/src/transport/constant/payment.constant.ts similarity index 100% rename from src/transport/constant/payment.constant.ts rename to snack-bar-api/src/transport/constant/payment.constant.ts diff --git a/src/transport/constant/product.constant.ts b/snack-bar-api/src/transport/constant/product.constant.ts similarity index 100% rename from src/transport/constant/product.constant.ts rename to snack-bar-api/src/transport/constant/product.constant.ts diff --git a/src/transport/controller/client.controller.ts b/snack-bar-api/src/transport/controller/client.controller.ts similarity index 100% rename from src/transport/controller/client.controller.ts rename to snack-bar-api/src/transport/controller/client.controller.ts diff --git a/src/transport/controller/order.controller.ts b/snack-bar-api/src/transport/controller/order.controller.ts similarity index 100% rename from src/transport/controller/order.controller.ts rename to snack-bar-api/src/transport/controller/order.controller.ts diff --git a/src/transport/controller/payment.controller.ts b/snack-bar-api/src/transport/controller/payment.controller.ts similarity index 100% rename from src/transport/controller/payment.controller.ts rename to snack-bar-api/src/transport/controller/payment.controller.ts diff --git a/src/transport/controller/product.controller.ts b/snack-bar-api/src/transport/controller/product.controller.ts similarity index 100% rename from src/transport/controller/product.controller.ts rename to snack-bar-api/src/transport/controller/product.controller.ts diff --git a/src/transport/dto/client/create-client.dto.ts b/snack-bar-api/src/transport/dto/client/create-client.dto.ts similarity index 100% rename from src/transport/dto/client/create-client.dto.ts rename to snack-bar-api/src/transport/dto/client/create-client.dto.ts diff --git a/src/transport/dto/client/update-client.dto.ts b/snack-bar-api/src/transport/dto/client/update-client.dto.ts similarity index 100% rename from src/transport/dto/client/update-client.dto.ts rename to snack-bar-api/src/transport/dto/client/update-client.dto.ts diff --git a/src/transport/dto/order/create-order.dto.ts b/snack-bar-api/src/transport/dto/order/create-order.dto.ts similarity index 100% rename from src/transport/dto/order/create-order.dto.ts rename to snack-bar-api/src/transport/dto/order/create-order.dto.ts diff --git a/src/transport/dto/order/update-order.dto.ts b/snack-bar-api/src/transport/dto/order/update-order.dto.ts similarity index 100% rename from src/transport/dto/order/update-order.dto.ts rename to snack-bar-api/src/transport/dto/order/update-order.dto.ts diff --git a/src/transport/dto/payment/request/payment.dto.ts b/snack-bar-api/src/transport/dto/payment/request/payment.dto.ts similarity index 100% rename from src/transport/dto/payment/request/payment.dto.ts rename to snack-bar-api/src/transport/dto/payment/request/payment.dto.ts diff --git a/src/transport/dto/payment/response/get-payment-status.dto.ts b/snack-bar-api/src/transport/dto/payment/response/get-payment-status.dto.ts similarity index 100% rename from src/transport/dto/payment/response/get-payment-status.dto.ts rename to snack-bar-api/src/transport/dto/payment/response/get-payment-status.dto.ts diff --git a/src/transport/dto/product/create-product.dto.ts b/snack-bar-api/src/transport/dto/product/create-product.dto.ts similarity index 100% rename from src/transport/dto/product/create-product.dto.ts rename to snack-bar-api/src/transport/dto/product/create-product.dto.ts diff --git a/src/transport/dto/product/product.dto.ts b/snack-bar-api/src/transport/dto/product/product.dto.ts similarity index 100% rename from src/transport/dto/product/product.dto.ts rename to snack-bar-api/src/transport/dto/product/product.dto.ts diff --git a/test/app.e2e-spec.ts b/snack-bar-api/test/app.e2e-spec.ts similarity index 100% rename from test/app.e2e-spec.ts rename to snack-bar-api/test/app.e2e-spec.ts diff --git a/test/client/client-reader.service.spec.ts b/snack-bar-api/test/client/client-reader.service.spec.ts similarity index 100% rename from test/client/client-reader.service.spec.ts rename to snack-bar-api/test/client/client-reader.service.spec.ts diff --git a/test/client/client-writer.service.spec.ts b/snack-bar-api/test/client/client-writer.service.spec.ts similarity index 100% rename from test/client/client-writer.service.spec.ts rename to snack-bar-api/test/client/client-writer.service.spec.ts diff --git a/test/jest-e2e.json b/snack-bar-api/test/jest-e2e.json similarity index 100% rename from test/jest-e2e.json rename to snack-bar-api/test/jest-e2e.json diff --git a/test/order/order-reader.service.spec.ts b/snack-bar-api/test/order/order-reader.service.spec.ts similarity index 100% rename from test/order/order-reader.service.spec.ts rename to snack-bar-api/test/order/order-reader.service.spec.ts diff --git a/test/order/order-writer.service.spec.ts b/snack-bar-api/test/order/order-writer.service.spec.ts similarity index 100% rename from test/order/order-writer.service.spec.ts rename to snack-bar-api/test/order/order-writer.service.spec.ts diff --git a/test/payment/payment-reader.service.spec.ts b/snack-bar-api/test/payment/payment-reader.service.spec.ts similarity index 100% rename from test/payment/payment-reader.service.spec.ts rename to snack-bar-api/test/payment/payment-reader.service.spec.ts diff --git a/test/payment/payment-writer.service.spec.ts b/snack-bar-api/test/payment/payment-writer.service.spec.ts similarity index 100% rename from test/payment/payment-writer.service.spec.ts rename to snack-bar-api/test/payment/payment-writer.service.spec.ts diff --git a/test/product/product-reader.service.spec.ts b/snack-bar-api/test/product/product-reader.service.spec.ts similarity index 100% rename from test/product/product-reader.service.spec.ts rename to snack-bar-api/test/product/product-reader.service.spec.ts diff --git a/test/product/product-writer.service.spec.ts b/snack-bar-api/test/product/product-writer.service.spec.ts similarity index 100% rename from test/product/product-writer.service.spec.ts rename to snack-bar-api/test/product/product-writer.service.spec.ts diff --git a/tsconfig.build.json b/snack-bar-api/tsconfig.build.json similarity index 100% rename from tsconfig.build.json rename to snack-bar-api/tsconfig.build.json diff --git a/tsconfig.json b/snack-bar-api/tsconfig.json similarity index 100% rename from tsconfig.json rename to snack-bar-api/tsconfig.json