VARIS VONGUEA-AREE

🔥🇹🇭 Bangkok Thailand

High level experience in web design and development knowledge, producing quality work.

NestJS🔗

https://nestjs.com/

npm i -g @nestjs/cli

nest g controller game nest g module game

Module🔗

if you want to use a service you have to import it in the module

Service🔗

DTO (Data Transfer Object)🔗

validate variables before they are used

nest-winston🔗

for logging https://www.npmjs.com/package/nest-winston

From camelCase to snake_case🔗

https://www.npmjs.com/package/typeorm-naming-strategies

In the DB the createdAt field will be created_at

Testing🔗

npm run test npm run test:cov

.spec.ts

Troubleshooting🔗

remoove dist folder and run npm run start:dev again🔗

rm -rf dist

show logs in app.module.ts🔗

change logging: true

Don't use absolute path🔗

don't use absolute path like this in project 'src/module/' Vscode use User Setting(JSON)"typescript.preferences.importModuleSpecifier": "relative",

Circular dependency🔗

use @Inject(forwardRef(() => CommonService)) https://docs.nestjs.com/fundamentals/circular-dependency