[
  {
    "path": ".dockerignore",
    "content": "**/node_modules\n**/.next\n**/dist\n**/.turbo"
  },
  {
    "path": ".github/workflows/api.yaml",
    "content": "# This is a basic workflow to help you get started with Actions\n\nname: api-ci\n\n# Controls when the workflow will run\non:\n  # Triggers the workflow on push or pull request events but only for the master branch\n  push:\n    branches: [master]\n    paths:\n      - \"apps/api/**\"\n  pull_request:\n    branches: [master]\n    paths:\n      - \"apps/api/**\"\n\n  # Allows you to run this workflow manually from the Actions tab\n  workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"build\"\n  build:\n    # The type of runner that the job will run on\n    runs-on: ubuntu-latest\n    env:\n      DATABASE_URL: \"postgresql://test:test@localhost:5432/pm\"\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    strategy:\n      matrix:\n        node-version: [16.x]\n\n    steps:\n      - uses: actions/checkout@v2\n      - name: Use Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v2\n        with:\n          node-version: ${{ matrix.node-version }}\n\n      - name: Get yarn cache directory path\n        id: yarn-cache-dir-path\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n\n      - name: Cache node modules\n        uses: actions/cache@v2\n        env:\n          cache-name: cache-node-modules\n        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)\n        with:\n          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n          restore-keys: |\n            ${{ runner.os }}-yarn-\n\n      - run: yarn global add turbo\n      - run: npx nps prepare.ci.api\n      - run: npx nps build.ci.api\n      - run: npx nps test.ci.api\n"
  },
  {
    "path": ".github/workflows/web.yaml",
    "content": "# This is a basic workflow to help you get started with Actions\n\nname: web-ci\n\n# Controls when the workflow will run\non:\n  # Triggers the workflow on push or pull request events but only for the master branch\n  push:\n    branches: [master]\n    paths:\n      - \"apps/web/**\"\n  pull_request:\n    branches: [master]\n    paths:\n      - \"apps/web/**\"\n\n  # Allows you to run this workflow manually from the Actions tab\n  workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"build\"\n  build:\n    # The type of runner that the job will run on\n    runs-on: ubuntu-latest\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    strategy:\n      matrix:\n        node-version: [16.x]\n\n    steps:\n      - uses: actions/checkout@v2\n      - name: Use Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v2\n        with:\n          node-version: ${{ matrix.node-version }}\n      - name: Get yarn cache directory path\n        id: yarn-cache-dir-path\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n\n      - name: Cache node modules\n        uses: actions/cache@v2\n        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)\n        with:\n          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n          restore-keys: |\n            ${{ runner.os }}-yarn-\n\n      - run: yarn global add turbo\n      - run: npx nps prepare.ci.web\n      - run: npx nps build.ci.web\n      - run: npx nps test.ci.web\n"
  },
  {
    "path": ".gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\nnode_modules\n.pnp\n.pnp.js\n\n# testing\ncoverage\n\n# next.js\n.next/\nout/\nbuild\n\n**/dist\n**/.env\n\n# misc\n.DS_Store\n*.pem\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n.pnpm-debug.log*\n\n# local env files\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\n# turbo\n.turbo"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 Ejaz Ahmed\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Turborepo (NestJS + Prisma + NextJS + Tailwind + Typescript + Jest) Starter\n\nThis is fullstack turborepo starter. It comes with the following features. \n\n- ✅ Turborepo \n- ✅ Nestjs \n    - ✅ Env Config with Validation  \n    - ✅ Prisma \n- ✅ NextJS \n    - ✅ Tailwind \n    - ✅ Redux Toolkit Query \n- ✅ Testing using Jest \n- ✅ Github Actions \n- ✅ Reverse Proxy using Nginx \n- ✅ Docker Integration \n- ✅ Postgres Database \n- ✅ Package scripts using NPS \n\n## What's inside?\n\nThis turborepo uses [Yarn](https://classic.yarnpkg.com/lang/en/) as a package manager. It includes the following packages/apps:\n\n### Apps and Packages\n\n- `api`: a [NestJS](https://nestjs.com/) app\n- `web`: a [Next.js](https://nextjs.org) app\n- `ui`: a stub React component library used by `web`.\n- `config`: `eslint`, `nginx` and `tailwind` (includes `eslint-config-next` and `eslint-config-prettier`)\n- `tsconfig`: `tsconfig.json`s used throughout the monorepo\n\nEach package/app is 100% [TypeScript](https://www.typescriptlang.org/).\n\n### Utilities\n\nThis turborepo has some additional tools already setup for you:\n\n- [Node Package Scripts](https://github.com/sezna/nps#readme) for automation scripts\n- [TypeScript](https://www.typescriptlang.org/) for static type checking\n- [ESLint](https://eslint.org/) for code linting\n- [Prettier](https://prettier.io) for code formatting\n\n## Setup\nThis starter kit is using turborepo and yarn workspaces for monorepo workflow.\n\n### Prerequisites \n- Install nps by running \n```\nnpm i -g nps\n```\n- Make sure docker and docker-compose are\n installed. Refer to docs for your operating system.\n\n### Configure Environment\n- Frontend \n    - `cd apps/web && cp .env.example .env`\n- Backend \n    - `cd apps/api && cp .env.example .env`\n\n### Install Dependencies\nMake sure you are at root of the project and just run \n\n```\nnps prepare\n```\n### Build\n\nTo build all apps and packages, run the following command at the root of project:\n\n```\nnps build\n```\n\n### Develop\n\nTo develop all apps and packages, run the following command at the root of project:\n\n```\nnps dev\n```\nThe app should be running at `http://localhost` with reverse proxy configured.\n\n\n## Other available commands\nRun `nps` in the terminal to see list of all available commands. \n"
  },
  {
    "path": "apps/api/.eslintrc.js",
    "content": "module.exports = {\n  parser: '@typescript-eslint/parser',\n  parserOptions: {\n    project: 'tsconfig.json',\n    sourceType: 'module',\n    tsconfigRootDir: __dirname,\n  },\n  plugins: ['@typescript-eslint/eslint-plugin'],\n  extends: [\n    'plugin:@typescript-eslint/recommended',\n    'plugin:prettier/recommended',\n  ],\n  root: true,\n  env: {\n    node: true,\n    jest: true,\n  },\n  ignorePatterns: ['.eslintrc.js'],\n  rules: {\n    '@typescript-eslint/interface-name-prefix': 'off',\n    '@typescript-eslint/explicit-function-return-type': 'off',\n    '@typescript-eslint/explicit-module-boundary-types': 'off',\n    '@typescript-eslint/no-explicit-any': 'off',\n  },\n};\n"
  },
  {
    "path": "apps/api/.prettierrc",
    "content": "{\n  \"singleQuote\": true,\n  \"trailingComma\": \"all\"\n}"
  },
  {
    "path": "apps/api/Dockerfile",
    "content": "FROM node:16-alpine AS builder\nRUN apk update\n# Set working directory\nWORKDIR /app\nRUN yarn global add turbo\nCOPY . .\nRUN turbo prune --scope=api --docker\n\n# Add lockfile and package.json's of isolated subworkspace\nFROM node:16-alpine AS installer\nRUN apk update\nWORKDIR /app\nCOPY --from=builder /app/out/json/ .\nCOPY --from=builder /app/out/yarn.lock ./yarn.lock\nCOPY --from=builder /app/turbo.json ./turbo.json\nCOPY --from=builder /app/apps/api/prisma ./prisma\nRUN yarn install --frozen-lockfile\nRUN yarn prisma generate \n\n\nFROM node:16-alpine AS sourcer\nWORKDIR /app\nCOPY --from=installer /app/ .\nCOPY --from=builder /app/out/full/ .\nCOPY .gitignore .gitignore\nRUN yarn turbo run build --scope=api --include-dependencies --no-deps\n\nFROM node:16-alpine as runner\nWORKDIR /app\nCOPY --from=sourcer /app/ .\nCMD [ \"node\", \"apps/api/dist/main.js\" ]\n"
  },
  {
    "path": "apps/api/README.md",
    "content": "<p align=\"center\">\n  <a href=\"http://nestjs.com/\" target=\"blank\"><img src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /></a>\n</p>\n\n[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456\n[circleci-url]: https://circleci.com/gh/nestjs/nest\n\n  <p align=\"center\">A progressive <a href=\"http://nodejs.org\" target=\"_blank\">Node.js</a> framework for building efficient and scalable server-side applications.</p>\n    <p align=\"center\">\n<a href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /></a>\n<a href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"><img src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /></a>\n<a href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"><img src=\"https://img.shields.io/npm/dm/@nestjs/common.svg\" alt=\"NPM Downloads\" /></a>\n<a href=\"https://circleci.com/gh/nestjs/nest\" target=\"_blank\"><img src=\"https://img.shields.io/circleci/build/github/nestjs/nest/master\" alt=\"CircleCI\" /></a>\n<a href=\"https://coveralls.io/github/nestjs/nest?branch=master\" target=\"_blank\"><img src=\"https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9\" alt=\"Coverage\" /></a>\n<a href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"><img src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/></a>\n<a href=\"https://opencollective.com/nest#backer\" target=\"_blank\"><img src=\"https://opencollective.com/nest/backers/badge.svg\" alt=\"Backers on Open Collective\" /></a>\n<a href=\"https://opencollective.com/nest#sponsor\" target=\"_blank\"><img src=\"https://opencollective.com/nest/sponsors/badge.svg\" alt=\"Sponsors on Open Collective\" /></a>\n  <a href=\"https://paypal.me/kamilmysliwiec\" target=\"_blank\"><img src=\"https://img.shields.io/badge/Donate-PayPal-ff3f59.svg\"/></a>\n    <a href=\"https://opencollective.com/nest#sponsor\"  target=\"_blank\"><img src=\"https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg\" alt=\"Support us\"></a>\n  <a href=\"https://twitter.com/nestframework\" target=\"_blank\"><img src=\"https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow\"></a>\n</p>\n  <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)\n  [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->\n\n## Description\n\n[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n## Support\n\nNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).\n\n## Stay in touch\n\n- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)\n- Website - [https://nestjs.com](https://nestjs.com/)\n- Twitter - [@nestframework](https://twitter.com/nestframework)\n\n## License\n\nNest is [MIT licensed](LICENSE).\n"
  },
  {
    "path": "apps/api/nest-cli.json",
    "content": "{\n  \"collection\": \"@nestjs/schematics\",\n  \"sourceRoot\": \"src\"\n}\n"
  },
  {
    "path": "apps/api/package.json",
    "content": "{\n  \"name\": \"api\",\n  \"version\": \"0.0.1\",\n  \"description\": \"\",\n  \"author\": \"\",\n  \"private\": true,\n  \"license\": \"UNLICENSED\",\n  \"scripts\": {\n    \"prebuild\": \"rimraf dist\",\n    \"build\": \"nest build\",\n    \"format\": \"prettier --write \\\"src/**/*.ts\\\" \\\"test/**/*.ts\\\"\",\n    \"start\": \"nest start\",\n    \"dev\": \"nest build --webpack --webpackPath webpack-hmr.config.js --watch\",\n    \"start:debug\": \"nest start --debug --watch\",\n    \"start:prod\": \"node dist/main\",\n    \"lint\": \"eslint \\\"{src,apps,libs,test}/**/*.ts\\\" --fix\",\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch --runInBand\",\n    \"test:cov\": \"jest --coverage\",\n    \"test:debug\": \"node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand\",\n    \"test:e2e\": \"jest --config ./test/jest-e2e.json --runInBand\",\n    \"test:ci\": \"jest --ci --runInBand\"\n  },\n  \"dependencies\": {\n    \"@nestjs/common\": \"^10.1.3\",\n    \"@nestjs/config\": \"^3.0.0\",\n    \"@nestjs/core\": \"^10.1.3\",\n    \"@nestjs/platform-express\": \"^10.1.3\",\n    \"@nestjs/swagger\": \"^7.1.6\",\n    \"@prisma/client\": \"^5.1.0\",\n    \"joi\": \"^17.9.2\",\n    \"reflect-metadata\": \"^0.1.13\",\n    \"rimraf\": \"^5.0.1\",\n    \"rxjs\": \"^7.8.1\",\n    \"swagger-ui-express\": \"^5.0.0\"\n  },\n  \"devDependencies\": {\n    \"@nestjs/cli\": \"^10.1.11\",\n    \"@nestjs/schematics\": \"^10.0.1\",\n    \"@nestjs/testing\": \"^10.1.3\",\n    \"@types/express\": \"^4.17.17\",\n    \"@types/jest\": \"^29.5.3\",\n    \"@types/node\": \"^20.4.5\",\n    \"@types/supertest\": \"^2.0.12\",\n    \"@typescript-eslint/eslint-plugin\": \"^6.2.1\",\n    \"@typescript-eslint/parser\": \"^6.2.1\",\n    \"eslint\": \"^8.46.0\",\n    \"eslint-config-prettier\": \"^8.9.0\",\n    \"eslint-plugin-prettier\": \"^5.0.0\",\n    \"jest\": \"^29.6.2\",\n    \"prettier\": \"^3.0.0\",\n    \"prisma\": \"^5.1.0\",\n    \"run-script-webpack-plugin\": \"^0.2.0\",\n    \"source-map-support\": \"^0.5.21\",\n    \"supertest\": \"^6.3.3\",\n    \"ts-jest\": \"^29.1.1\",\n    \"ts-loader\": \"^9.4.4\",\n    \"ts-node\": \"^10.9.1\",\n    \"tsconfig\": \"*\",\n    \"tsconfig-paths\": \"^4.2.0\",\n    \"typescript\": \"^5.1.6\",\n    \"webpack\": \"^5.88.2\",\n    \"webpack-node-externals\": \"^3.0.0\"\n  },\n  \"jest\": {\n    \"moduleFileExtensions\": [\n      \"js\",\n      \"json\",\n      \"ts\"\n    ],\n    \"rootDir\": \"src\",\n    \"testRegex\": \".*\\\\.spec\\\\.ts$\",\n    \"transform\": {\n      \"^.+\\\\.(t|j)s$\": \"ts-jest\"\n    },\n    \"collectCoverageFrom\": [\n      \"**/*.(t|j)s\"\n    ],\n    \"coverageDirectory\": \"../coverage\",\n    \"testEnvironment\": \"node\"\n  }\n}\n"
  },
  {
    "path": "apps/api/prisma/migrations/20220307034109_initial_migrate/migration.sql",
    "content": "-- CreateTable\nCREATE TABLE \"User\" (\n    \"id\" SERIAL NOT NULL,\n    \"email\" TEXT NOT NULL,\n    \"name\" TEXT,\n\n    CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"User_email_key\" ON \"User\"(\"email\");\n"
  },
  {
    "path": "apps/api/prisma/migrations/migration_lock.toml",
    "content": "# Please do not edit this file manually\n# It should be added in your version-control system (i.e. Git)\nprovider = \"postgresql\""
  },
  {
    "path": "apps/api/prisma/schema.prisma",
    "content": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n  provider = \"prisma-client-js\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n  url      = env(\"DATABASE_URL\")\n}\n\nmodel User {\n  id    Int     @id @default(autoincrement())\n  email String  @unique\n  name  String?\n}\n"
  },
  {
    "path": "apps/api/src/app.controller.spec.ts",
    "content": "import { Test, TestingModule } from '@nestjs/testing';\nimport { AppController } from './app.controller';\nimport { AppService } from './app.service';\nimport { PersistenceModule } from './persistence/persistence.module';\n\ndescribe('AppController', () => {\n  let appController: AppController;\n\n  beforeEach(async () => {\n    const app: TestingModule = await Test.createTestingModule({\n      imports: [PersistenceModule],\n      controllers: [AppController],\n      providers: [AppService],\n    }).compile();\n\n    appController = app.get<AppController>(AppController);\n  });\n\n  describe('root', () => {\n    it('should return \"Hello World!\"', async () => {\n      expect(await appController.getHello()).toEqual({\n        message: 'Hello World',\n      });\n    });\n  });\n});\n"
  },
  {
    "path": "apps/api/src/app.controller.ts",
    "content": "import { Controller, Get } from '@nestjs/common';\nimport { AppService } from './app.service';\n\n@Controller()\nexport class AppController {\n  constructor(private readonly appService: AppService) {}\n\n  @Get()\n  async getHello(): Promise<{ message: string }> {\n    return await this.appService.getHello();\n  }\n}\n"
  },
  {
    "path": "apps/api/src/app.module.ts",
    "content": "import { Module } from '@nestjs/common';\nimport { ConfigModule } from '@nestjs/config';\nimport { AppController } from './app.controller';\nimport { AppService } from './app.service';\nimport { validationSchemaForEnv } from './config/environment-variables';\nimport { PersistenceModule } from './persistence/persistence.module';\n\n@Module({\n  imports: [\n    ConfigModule.forRoot({\n      isGlobal: true,\n      validationSchema: validationSchemaForEnv,\n    }),\n    PersistenceModule,\n  ],\n  controllers: [AppController],\n  providers: [AppService],\n})\nexport class AppModule {}\n"
  },
  {
    "path": "apps/api/src/app.service.ts",
    "content": "import { Injectable } from '@nestjs/common';\n\n@Injectable()\nexport class AppService {\n  async getHello(): Promise<{ message: string }> {\n    return { message: 'Hello World' };\n  }\n}\n"
  },
  {
    "path": "apps/api/src/config/environment-variables.ts",
    "content": "import * as Joi from 'joi';\n\nexport interface EnvironmentVariables {\n  DATABASE_URL: string;\n}\n\nexport const validationSchemaForEnv = Joi.object<EnvironmentVariables, true>({\n  DATABASE_URL: Joi.string().required(),\n});\n"
  },
  {
    "path": "apps/api/src/main.ts",
    "content": "import { Logger } from '@nestjs/common';\nimport { NestFactory } from '@nestjs/core';\nimport { AppModule } from './app.module';\nimport { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';\n\ndeclare const module: any;\nasync function bootstrap() {\n  const logger = new Logger('EntryPoint');\n  const app = await NestFactory.create(AppModule);\n\n  const config = new DocumentBuilder()\n    .setTitle('Leaves Tracker')\n    .setDescription('Api Docs for leaves tracker')\n    .setVersion('1.0')\n    .build();\n\n  const document = SwaggerModule.createDocument(app, config);\n  SwaggerModule.setup('docs', app, document);\n\n  const PORT = 5002;\n\n  await app.listen(PORT);\n\n  if (module.hot) {\n    module.hot.accept();\n    module.hot.dispose(() => app.close());\n  }\n  logger.log(`Server running on http://localhost:${PORT}`);\n}\nbootstrap();\n"
  },
  {
    "path": "apps/api/src/persistence/persistence.module.ts",
    "content": "import { Module } from '@nestjs/common';\nimport { PrismaService } from './prisma/prisma.service';\n\n@Module({\n  providers: [PrismaService],\n  exports: [PrismaService],\n})\nexport class PersistenceModule {}\n"
  },
  {
    "path": "apps/api/src/persistence/prisma/prisma.service.spec.ts",
    "content": "import { Test, TestingModule } from '@nestjs/testing';\nimport { PrismaService } from './prisma.service';\n\ndescribe('PrismaService', () => {\n  let service: PrismaService;\n\n  beforeEach(async () => {\n    const module: TestingModule = await Test.createTestingModule({\n      providers: [PrismaService],\n    }).compile();\n\n    service = module.get<PrismaService>(PrismaService);\n  });\n\n  it('should be defined', () => {\n    expect(service).toBeDefined();\n  });\n});\n"
  },
  {
    "path": "apps/api/src/persistence/prisma/prisma.service.ts",
    "content": "import { Injectable, OnModuleInit } from '@nestjs/common';\nimport { PrismaClient } from '@prisma/client';\n\n@Injectable()\nexport class PrismaService extends PrismaClient implements OnModuleInit {\n  async onModuleInit() {\n    await this.$connect();\n  }\n}\n"
  },
  {
    "path": "apps/api/test/app.e2e-spec.ts",
    "content": "import { Test, TestingModule } from '@nestjs/testing';\nimport { INestApplication } from '@nestjs/common';\nimport * as request from 'supertest';\nimport { AppModule } from './../src/app.module';\n\ndescribe('AppController (e2e)', () => {\n  let app: INestApplication;\n\n  beforeEach(async () => {\n    const moduleFixture: TestingModule = await Test.createTestingModule({\n      imports: [AppModule],\n    }).compile();\n\n    app = moduleFixture.createNestApplication();\n    await app.init();\n  });\n\n  it('/ (GET)', () => {\n    return request(app.getHttpServer())\n      .get('/')\n      .expect(200)\n      .expect('Hello World!');\n  });\n});\n"
  },
  {
    "path": "apps/api/test/jest-e2e.json",
    "content": "{\n  \"moduleFileExtensions\": [\"js\", \"json\", \"ts\"],\n  \"rootDir\": \".\",\n  \"testEnvironment\": \"node\",\n  \"testRegex\": \".e2e-spec.ts$\",\n  \"transform\": {\n    \"^.+\\\\.(t|j)s$\": \"ts-jest\"\n  }\n}\n"
  },
  {
    "path": "apps/api/tsconfig.build.json",
    "content": "{\n  \"extends\": \"./tsconfig.json\",\n  \"exclude\": [\n    \"node_modules\",\n    \"../../node_modules\",\n    \"test\",\n    \"dist\",\n    \"**/*spec.ts\"\n  ]\n}\n"
  },
  {
    "path": "apps/api/tsconfig.json",
    "content": "{\n  \"extends\": \"tsconfig/nestjs.json\",\n  \"compilerOptions\": {\n    \"outDir\": \"./dist\",\n    \"baseUrl\": \"./\"\n  }\n}\n"
  },
  {
    "path": "apps/api/webpack-hmr.config.js",
    "content": "/* eslint-disable @typescript-eslint/no-var-requires */\nconst nodeExternals = require('webpack-node-externals');\nconst { RunScriptWebpackPlugin } = require('run-script-webpack-plugin');\n\nmodule.exports = function (options, webpack) {\n  return {\n    ...options,\n    entry: ['webpack/hot/poll?100', options.entry],\n    externals: [\n      nodeExternals({\n        allowlist: ['webpack/hot/poll?100'],\n        modulesDir: '../../node_modules',\n      }),\n    ],\n    plugins: [\n      ...options.plugins,\n      new webpack.HotModuleReplacementPlugin(),\n      new webpack.WatchIgnorePlugin({\n        paths: [/\\.js$/, /\\.d\\.ts$/],\n      }),\n      new RunScriptWebpackPlugin({ name: options.output.filename }),\n    ],\n  };\n};\n"
  },
  {
    "path": "apps/web/.eslintrc.js",
    "content": "module.exports = require(\"config/eslint-preset\");\n"
  },
  {
    "path": "apps/web/Dockerfile",
    "content": "FROM node:16-alpine AS builder\nRUN apk update\n# Set working directory\nWORKDIR /app\nRUN yarn global add turbo\nCOPY . .\n# Only Take packages that are needed to compile this app\nRUN turbo prune --scope=web --docker\n\n# Add lockfile and package.json's of isolated subworkspace\nFROM node:16-alpine AS installer\nRUN apk update\nRUN apk add --no-cache libc6-compat\nWORKDIR /app\nCOPY --from=builder /app/out/json/ .\nCOPY --from=builder /app/out/yarn.lock ./yarn.lock\nCOPY --from=builder /app/turbo.json ./turbo.json\nRUN yarn install --frozen-lockfile\n\n\nFROM node:16-alpine AS sourcer\nRUN apk update\nWORKDIR /app\nCOPY --from=installer /app/ .\nCOPY --from=builder /app/out/full/ .\nCOPY .gitignore .gitignore\nRUN yarn turbo run build --scope=web --include-dependencies --no-deps\n\nFROM node:16-alpine as runner\nWORKDIR /app\nCOPY --from=sourcer /app/ .\nWORKDIR /app/apps/web/\nCMD [ \"npm\", \"start\" ]\n"
  },
  {
    "path": "apps/web/README.md",
    "content": "## Getting Started\n\nFirst, run the development server:\n\n```bash\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n"
  },
  {
    "path": "apps/web/jest.config.js",
    "content": "const nextJest = require(\"next/jest\");\n\nconst createJestConfig = nextJest({\n  // Provide the path to your Next.js app to load next.config.js and .env files in your test environment\n  dir: \"./\",\n});\n\n// Add any custom config to be passed to Jest\nconst customJestConfig = {\n  // Add more setup options before each test is run\n  // setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],\n  // if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work\n  moduleDirectories: [\"node_modules\", \"<rootDir>/\"],\n  testEnvironment: \"jest-environment-jsdom\",\n};\n\n// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async\nmodule.exports = createJestConfig(customJestConfig);\n"
  },
  {
    "path": "apps/web/jest.setup.js",
    "content": "// Optional: configure or set up a testing framework before each test.\n// If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js`\n\n// Used for __tests__/testing-library.js\n// Learn more: https://github.com/testing-library/jest-dom\nimport \"@testing-library/jest-dom/extend-expect\";\n"
  },
  {
    "path": "apps/web/next-env.d.ts",
    "content": "/// <reference types=\"next\" />\n/// <reference types=\"next/image-types/global\" />\n\n// NOTE: This file should not be edited\n// see https://nextjs.org/docs/basic-features/typescript for more information.\n"
  },
  {
    "path": "apps/web/next.config.js",
    "content": "const withTM = require(\"next-transpile-modules\")([\"ui\"]);\n\nmodule.exports = withTM({\n  reactStrictMode: true,\n});\n"
  },
  {
    "path": "apps/web/package.json",
    "content": "{\n  \"name\": \"web\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\",\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\",\n    \"test:ci\": \"jest --ci\"\n  },\n  \"dependencies\": {\n    \"@reduxjs/toolkit\": \"^1.9.5\",\n    \"next\": \"13.4.12\",\n    \"react\": \"18.2.0\",\n    \"react-dom\": \"18.2.0\",\n    \"react-redux\": \"^8.1.2\",\n    \"ui\": \"*\"\n  },\n  \"devDependencies\": {\n    \"@testing-library/jest-dom\": \"^5.17.0\",\n    \"@testing-library/react\": \"^14.0.0\",\n    \"@testing-library/user-event\": \"14.4.3\",\n    \"@types/node\": \"^20.4.5\",\n    \"@types/react\": \"18.2.18\",\n    \"autoprefixer\": \"^10.4.14\",\n    \"config\": \"*\",\n    \"eslint\": \"8.46.0\",\n    \"jest\": \"^29.6.2\",\n    \"jest-environment-jsdom\": \"^29.6.2\",\n    \"next-transpile-modules\": \"10.0.1\",\n    \"postcss\": \"^8.4.27\",\n    \"tailwindcss\": \"^3.3.3\",\n    \"tsconfig\": \"*\",\n    \"typescript\": \"^5.1.6\"\n  }\n}\n"
  },
  {
    "path": "apps/web/pages/_app.tsx",
    "content": "import type { AppProps } from \"next/app\";\nimport { Provider } from \"react-redux\";\nimport store from \"../src/store\";\nimport \"../src/styles/global.css\";\n\nfunction MyApp({ Component, pageProps }: AppProps) {\n  return (\n    <Provider store={store}>\n      <Component {...pageProps} />;\n    </Provider>\n  );\n}\n\nexport default MyApp;\n"
  },
  {
    "path": "apps/web/pages/index.tsx",
    "content": "import { Button } from \"ui\";\nimport { useHelloQuery } from \"../src/store/services/api\";\n\nexport default function Web() {\n  const { data } = useHelloQuery();\n\n  return (\n    <div>\n      <h1>{data?.message}</h1>\n      <Button />\n    </div>\n  );\n}\n"
  },
  {
    "path": "apps/web/postcss.config.js",
    "content": "module.exports = require(\"config/postcss.config\");\n"
  },
  {
    "path": "apps/web/src/common/.gitkeep",
    "content": ""
  },
  {
    "path": "apps/web/src/screens/admin/.gitkeep",
    "content": ""
  },
  {
    "path": "apps/web/src/screens/auth/login/login.test.tsx",
    "content": "import { render } from \"@testing-library/react\";\nimport { LoginScreen } from \"./login\";\n\ntest(\"render login component\", () => {\n  render(<LoginScreen />);\n});\n"
  },
  {
    "path": "apps/web/src/screens/auth/login/login.tsx",
    "content": "import { Button } from \"ui\";\n\nexport function LoginScreen() {\n  return (\n    <div>\n      Login Screen <Button />\n    </div>\n  );\n}\n"
  },
  {
    "path": "apps/web/src/screens/common/.gitkeep",
    "content": ""
  },
  {
    "path": "apps/web/src/screens/employee/.gitkeep",
    "content": ""
  },
  {
    "path": "apps/web/src/store/index.ts",
    "content": "import { configureStore } from \"@reduxjs/toolkit\";\nimport { TypedUseSelectorHook, useDispatch, useSelector } from \"react-redux\";\n\nimport { api } from \"./services/api\";\n\nexport function makeStore() {\n  return configureStore({\n    reducer: {\n      [api.reducerPath]: api.reducer,\n    },\n\n    middleware: (getDefaultMiddleware) =>\n      getDefaultMiddleware().concat(api.middleware),\n  });\n}\n\nconst store = makeStore();\n\nexport type RootState = ReturnType<typeof store.getState>;\n\nexport type AppDispatch = typeof store.dispatch;\n\nexport const useAppDispatch = () => useDispatch<AppDispatch>();\n\nexport const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;\n\nexport default store;\n"
  },
  {
    "path": "apps/web/src/store/services/api.ts",
    "content": "import { createApi, fetchBaseQuery } from \"@reduxjs/toolkit/query/react\";\n\nexport const api = createApi({\n  reducerPath: \"baseApi\",\n  baseQuery: fetchBaseQuery({\n    baseUrl: \"api\",\n  }),\n  tagTypes: [],\n  endpoints: (builder) => ({\n    hello: builder.query<{ message: string }, void>({\n      query: () => ({\n        url: \"/\",\n      }),\n    }),\n  }),\n});\n\nexport const { useHelloQuery } = api;\n"
  },
  {
    "path": "apps/web/src/styles/global.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n"
  },
  {
    "path": "apps/web/tailwind.config.js",
    "content": "module.exports = require(\"config/tailwind.config\");\n"
  },
  {
    "path": "apps/web/tsconfig.json",
    "content": "{\n  \"extends\": \"tsconfig/nextjs.json\",\n  \"include\": [\"next-env.d.ts\", \"**/*.ts\", \"**/*.tsx\", \"jest.setup.js\"],\n  \"exclude\": [\"node_modules\"]\n}\n"
  },
  {
    "path": "docker-compose.yml",
    "content": "version: \"3.8\"\n\nservices:\n  reverse-proxy:\n    image: nginx:latest\n    container_name: nginx_container\n    ports:\n      - 80:80\n    depends_on:\n      - postgres\n    volumes:\n      - ./packages/config/nginx.conf:/etc/nginx/nginx.conf\n    extra_hosts:\n      - \"host.docker.internal:host-gateway\"\n\n  postgres:\n    image: postgres:15\n    environment:\n      - POSTGRES_DB=mydb\n      - POSTGRES_USER=test\n      - POSTGRES_PASSWORD=test\n    volumes:\n      - db_data:/var/lib/postgresql/data\n    ports:\n      - \"5432:5432\"\n\nvolumes:\n  db_data:\n"
  },
  {
    "path": "package-scripts.js",
    "content": "const path = require(\"path\");\n\nconst apiPath = path.resolve(__dirname, \"apps/api\");\nconst webPath = path.resolve(__dirname, \"apps/web\");\n\nconst ciApiPath = path.resolve(__dirname, \"out/apps/api\");\nconst ciWebPath = path.resolve(__dirname, \"out/apps/web\");\n\nmodule.exports = {\n  scripts: {\n    prepare: {\n      default: `nps prepare.web prepare.api`,\n      web: `yarn`,\n      api: `nps prepare.docker prisma.migrate.dev`,\n      docker: \"docker compose up -d\",\n      ci: {\n        web: `npx turbo prune --scope=web && cd out && yarn install --frozen-lockfile`,\n        api: `npx turbo prune --scope=api && cd out && yarn install --frozen-lockfile && nps prisma.generate`,\n      },\n    },\n    test: {\n      default: `nps test.web test.api`,\n      web: `cd ${webPath} && yarn test`,\n      api: `cd ${apiPath} && yarn test`,\n      ci: {\n        default: `nps test.ci.web test.ci.api`,\n        web: `cd ${ciWebPath} && yarn test:ci`,\n        api: `cd ${ciApiPath} && yarn test:ci`,\n      },\n      watch: {\n        default: `nps test.watch.web test.watch.api`,\n        web: `cd ${webPath} && yarn test:watch`,\n        api: `cd ${apiPath} && yarn test:watch`,\n      },\n    },\n    prisma: {\n      generate: `cd ${apiPath} && npx prisma generate`,\n      studio: `cd ${apiPath} && npx prisma studio`,\n      migrate: {\n        dev: `cd ${apiPath} && npx prisma migrate dev`,\n      },\n    },\n    build: {\n      default: \"npx turbo run build\",\n      ci: {\n        web: \"cd out && npm run build\",\n        api: \"cd out && npm run build\",\n      },\n    },\n    docker: {\n      build: {\n        default: \"nps docker.build.web docker.build.api\",\n        web: `docker build -t web . -f ${webPath}/Dockerfile`,\n        api: `docker build -t api . -f ${apiPath}/Dockerfile`,\n      },\n    },\n    dev: \"npx turbo run dev\",\n  },\n};\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"turborepo-basic-shared\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"workspaces\": [\n    \"apps/*\",\n    \"packages/*\"\n  ],\n  \"scripts\": {\n    \"build\": \"turbo run build\",\n    \"dev\": \"turbo run dev --parallel\",\n    \"lint\": \"turbo run lint\",\n    \"format\": \"prettier --write \\\"**/*.{ts,tsx,md}\\\"\"\n  },\n  \"devDependencies\": {\n    \"prettier\": \"^3.0.0\",\n    \"prisma\": \"^5.1.0\",\n    \"turbo\": \"1.10.12\"\n  },\n  \"engines\": {\n    \"npm\": \">=7.0.0\",\n    \"node\": \">=14.0.0\"\n  },\n  \"packageManager\": \"yarn@1.22.17\"\n}\n"
  },
  {
    "path": "packages/config/eslint-preset.js",
    "content": "module.exports = {\n  extends: [\"next\", \"prettier\"],\n  settings: {\n    next: {\n      rootDir: [\"apps/*/\", \"packages/*/\"],\n    },\n  },\n  rules: {\n    \"@next/next/no-html-link-for-pages\": \"off\",\n    \"react/jsx-key\": \"off\",\n  },\n};\n"
  },
  {
    "path": "packages/config/nginx.conf",
    "content": "events {\n\n}\n\nhttp {\n\n    server {\n        listen 80;\n        server_name localhost;\n\n        location /api/ {\n            proxy_set_header Host $host;\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n            proxy_pass http://host.docker.internal:5002/;\n\n            proxy_http_version 1.1;\n            proxy_set_header Connection \"upgrade\";\n            proxy_set_header Upgrade $http_upgrade;\n        }\n\n        location /_next/webpack-hmr {\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n            proxy_set_header Host $host;\n\n\n            proxy_pass http://host.docker.internal:3000;\n\n            proxy_http_version 1.1;\n            proxy_set_header Connection \"upgrade\";\n            proxy_set_header Upgrade $http_upgrade;\n        }\n\n        location / {\n            proxy_pass http://host.docker.internal:3000;\n        }\n\n    }\n\n}\n"
  },
  {
    "path": "packages/config/package.json",
    "content": "{\n  \"name\": \"config\",\n  \"version\": \"0.0.0\",\n  \"main\": \"index.js\",\n  \"license\": \"MIT\",\n  \"files\": [\n    \"eslint-preset.js\"\n  ],\n  \"dependencies\": {\n    \"eslint-config-next\": \"^13.4.12\",\n    \"eslint-config-prettier\": \"^8.9.0\",\n    \"eslint-plugin-react\": \"7.33.1\"\n  }\n}\n"
  },
  {
    "path": "packages/config/postcss.config.js",
    "content": "module.exports = {\n  plugins: {\n    tailwindcss: {},\n    autoprefixer: {},\n  },\n};\n"
  },
  {
    "path": "packages/config/tailwind.config.js",
    "content": "module.exports = {\n  content: [\n    \"../../packages/ui/**/*.{js,ts,jsx,tsx}\",\n    \"./pages/**/*.{js,ts,jsx,tsx}\",\n    \"./components/**/*.{js,ts,jsx,tsx}\",\n  ],\n  theme: {\n    extend: {},\n  },\n  plugins: [],\n};\n"
  },
  {
    "path": "packages/tsconfig/README.md",
    "content": "# `tsconfig`\n\nThese are base shared `tsconfig.json`s from which all other `tsconfig.json`'s inherit from.\n"
  },
  {
    "path": "packages/tsconfig/base.json",
    "content": "{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"display\": \"Default\",\n  \"compilerOptions\": {\n    \"composite\": false,\n    \"declaration\": true,\n    \"declarationMap\": true,\n    \"esModuleInterop\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \"inlineSources\": false,\n    \"isolatedModules\": true,\n    \"moduleResolution\": \"node\",\n    \"noUnusedLocals\": false,\n    \"noUnusedParameters\": false,\n    \"preserveWatchOutput\": true,\n    \"skipLibCheck\": true,\n    \"strict\": true\n  },\n  \"exclude\": [\"node_modules\"]\n}\n"
  },
  {
    "path": "packages/tsconfig/nestjs.json",
    "content": "{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"extends\": \"./base.json\",\n  \"compilerOptions\": {\n    \"module\": \"commonjs\",\n    \"declaration\": true,\n    \"removeComments\": true,\n    \"emitDecoratorMetadata\": true,\n    \"experimentalDecorators\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"target\": \"es2017\",\n    \"sourceMap\": true,\n    \"incremental\": true,\n    \"skipLibCheck\": true,\n    \"strictNullChecks\": false,\n    \"noImplicitAny\": false,\n    \"strictBindCallApply\": false,\n    \"forceConsistentCasingInFileNames\": false,\n    \"noFallthroughCasesInSwitch\": false\n  }\n}\n"
  },
  {
    "path": "packages/tsconfig/nextjs.json",
    "content": "{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"display\": \"Next.js\",\n  \"extends\": \"./base.json\",\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"lib\": [\"dom\", \"dom.iterable\", \"esnext\"],\n    \"allowJs\": true,\n    \"skipLibCheck\": true,\n    \"strict\": false,\n    \"forceConsistentCasingInFileNames\": true,\n    \"noEmit\": true,\n    \"incremental\": true,\n    \"esModuleInterop\": true,\n    \"module\": \"esnext\",\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"jsx\": \"preserve\"\n  },\n  \"include\": [\"src\", \"next-env.d.ts\"],\n  \"exclude\": [\"node_modules\"]\n}\n"
  },
  {
    "path": "packages/tsconfig/package.json",
    "content": "{\n  \"name\": \"tsconfig\",\n  \"version\": \"0.0.0\",\n  \"private\": true,\n  \"main\": \"index.js\",\n  \"files\": [\n    \"base.json\",\n    \"nextjs.json\",\n    \"react-library.json\"\n  ]\n}\n"
  },
  {
    "path": "packages/tsconfig/react-library.json",
    "content": "{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"display\": \"React Library\",\n  \"extends\": \"./base.json\",\n  \"compilerOptions\": {\n    \"lib\": [\"ES2015\"],\n    \"module\": \"ESNext\",\n    \"target\": \"ES6\",\n    \"jsx\": \"react-jsx\"\n  }\n}\n"
  },
  {
    "path": "packages/ui/components/Button/Button.tsx",
    "content": "export const Button = () => {\n  return <button className=\"text-lg bg-red-500\">boo</button>;\n};\n"
  },
  {
    "path": "packages/ui/index.tsx",
    "content": "export * from \"./components/Button/Button\";\n"
  },
  {
    "path": "packages/ui/package.json",
    "content": "{\n  \"name\": \"ui\",\n  \"version\": \"0.0.0\",\n  \"main\": \"./index.tsx\",\n  \"types\": \"./index.tsx\",\n  \"license\": \"MIT\",\n  \"devDependencies\": {\n    \"@types/react\": \"^18.2.18\",\n    \"@types/react-dom\": \"^18.2.7\",\n    \"config\": \"*\",\n    \"tsconfig\": \"*\",\n    \"typescript\": \"^5.1.6\"\n  }\n}\n"
  },
  {
    "path": "packages/ui/tsconfig.json",
    "content": "{\n  \"extends\": \"tsconfig/react-library.json\",\n  \"include\": [\".\"],\n  \"exclude\": [\"dist\", \"build\", \"node_modules\"]\n}\n"
  },
  {
    "path": "turbo.json",
    "content": "{\n  \"pipeline\": {\n    \"build\": {\n      \"dependsOn\": [\"^build\"],\n      \"outputs\": [\"dist/**\", \".next/**\"]\n    },\n    \"lint\": {\n      \"outputs\": []\n    },\n    \"dev\": {\n      \"cache\": false\n    },\n    \"test:ci\": {\n      \"cache\": false\n    }\n  }\n}\n"
  }
]