Skip to content
Hasby Maulana edited this page Dec 2, 2023 · 1 revision

Nest.ts Codebase


Installation

  1. Project
  • Standard :
    nest new {service} -p (npm,pnpm,yarn) -l (JavaScript, TypeScript) -g

  • Monorepo :
    nest new {service} -p (npm,pnpm,yarn) -l (JavaScript, TypeScript) -g
    &&
    cd {service} && nest generate app {sub_service}

  1. Convention

curl -sL https://raw.githubusercontent.com/tripteki/convention/1.0.0/bin/apply | sh

https://www.npmjs.com/package/@tripteki/eslint-config
https://www.npmjs.com/package/@tripteki/prettier-config


Configuration

Performance

Security

Usable

(Mandatory)

(Optional)

MVC, MVC

  1. Documentation

https://docs.nestjs.com/recipes/documentation
https://docs.nestjs.com/openapi/introduction

  1. Configuration

https://docs.nestjs.com/techniques/configuration

  1. Cache

https://docs.nestjs.com/techniques/caching

  1. Database

https://docs.nestjs.com/techniques/database
https://docs.nestjs.com/recipes/prisma
https://docs.nestjs.com/recipes/sql-typeorm
https://docs.nestjs.com/recipes/mongodb

  1. Locale

https://www.npmjs.com/package/nestjs-i18n

  1. Log

https://docs.nestjs.com/techniques/logger

  1. Monitor

https://docs.nestjs.com/recipes/terminus


Development

nest g resource {service/sub_service}

Run

Lint
npm run lint

Test
npm run test

Serve
npm run build && npm run start

Clone this wiki locally