{"repo":"CatsMiaow/nestjs-project-structure","free":true,"listed":false,"github":"https://github.com/CatsMiaow/nestjs-project-structure","clone":"git clone https://github.com/CatsMiaow/nestjs-project-structure.git","description":"Node.js framework NestJS project structure","language":"TypeScript","stars":1355,"topics":["node","nodejs","nest","nestjs","typescript","typeorm","project-structure"],"license":"MIT","category":"dev-tools","readme_excerpt":"nestjs-project-structure Node.js framework NestJS project structure Started from this issue: nestjs/nest#2249 Alternatives This example is based on the modules recommended by the NestJS official documentation as default (introduced at the top of the section). \\ If you focus on the performance or features of the module, you can consider: - Fastify instead of Express - MikroORM instead of TypeORM - or DrizzleORM - or Sequelize - or Prisma - SWC instead of TypeScript compiler - Vitest instead of Jest - ESM instead of CommonJS Check out the nestjs-project-performance repository for examples using this alternative. Configuration 1. Create a .env file - Rename the .env.sample file to .env to fix it. 2. Edit env config - Edit the file in the config/envs folder. - default , development , production , test Installation If you use multiple databases in entity:load , modify them. Development Run http://localhost:3000 Test Production Folders This is the most basic structure to start a NestJS project. \\ You should choose the right architecture [[1]](https://romanglushach.medium.com/c0f93b8a1b96) (Layered, Clean, Onion, Hexagonal ...) [[2]](https://gist.github.com/EliFuzz/8ab693db36ff33ead1445a43c3f0ef7e) based on the size of your project. Implements - Refer to bootstrap, app.module - Database, Module Router, Static Files, Validation, Pino Logger - Global Exception Filter - Global Logging Context Middleware - Custom Logger with nestjs-pino - Custom Decorators Example at Nest level - Config","default_branch":null,"files":null,"tree":[],"storefront":"/r/CatsMiaow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CatsMiaow/nestjs-project-structure/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}