Notice
Recent Posts
Recent Comments
Link
Silver Library (Archived)
nestjs - sandbox record 본문
반응형
VSCode extension:
- thunder client (cli)
npm i -g @nestjs/cli
nest new nest-cors -p npm
https://blog.bitsrc.io/how-to-enable-cors-in-nest-js-90c1b6316289
// .eslintrc.js - before
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
// modify it like this.
rules: {
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
'@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',
},
nest g module whatevernametogenerate
- by input whatever name, it generates module directory as well.
nest g resource users
= rest api