maksumov / rss-shop-be

3 stars 0 forks source link

Redo the BFF App on the NestJS #16

Open maksumov opened 3 years ago

maksumov commented 3 years ago

Task Definition

This is an additional task for Task 9

Work plan

  1. Redo the Application (#12) on the NestJS instead of the Express
  2. Add memoize solution (#15 ) for caching
maksumov commented 3 years ago
npm i -g @nestjs/cli
nest new bff-service-nestjs
maksumov commented 3 years ago

i had to edit the .eslintrc.js and tsconfig.json configuration files to resolve eslint error messages

.eslintrc.js

module.exports = {
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: __dirname,
    sourceType: 'module',
  },
  plugins: ['@typescript-eslint/eslint-plugin'],
  extends: [
    'plugin:@typescript-eslint/recommended',
    'prettier/@typescript-eslint',
    'plugin:prettier/recommended',
  ],
  root: true,
  env: {
    node: true,
    jest: true,
  },
  rules: {
    '@typescript-eslint/interface-name-prefix': 'off',
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/explicit-module-boundary-types': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
  },
  ignorePatterns: ['.eslintrc.js'],
};
{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "es2017",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "allowJs": true
  },
  "include": ["**/*.ts", "**/*.js"]
}

Sources: