{"id":27671744,"url":"https://github.com/Innei/nest-http-boilerplate","last_synced_at":"2025-04-25T00:01:57.026Z","repository":{"id":37973974,"uuid":"405092735","full_name":"innei-template/nest-http-boilerplate","owner":"innei-template","description":"A template for NestJS 10.x Typegoose Vitest and more, fast and simple boilerplate.","archived":false,"fork":false,"pushed_at":"2025-01-18T00:11:19.000Z","size":1802,"stargazers_count":90,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T07:03:24.028Z","etag":null,"topics":["architecture","boilerplate","logger","mongoose","nestjs","pnpm","template","typegoose","vitest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/innei-template.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-10T13:36:36.000Z","updated_at":"2025-03-31T15:35:56.000Z","dependencies_parsed_at":"2023-12-17T05:28:46.569Z","dependency_job_id":"31733e22-6012-452a-a7ae-9d37b26f8ad8","html_url":"https://github.com/innei-template/nest-http-boilerplate","commit_stats":null,"previous_names":["innei-template/nest-http-boilerplate","innei/nest-http-boilerplate"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innei-template%2Fnest-http-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innei-template","download_url":"https://codeload.github.com/innei-template/nest-http-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250730364,"owners_count":21477754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["architecture","boilerplate","logger","mongoose","nestjs","pnpm","template","typegoose","vitest"],"created_at":"2025-04-25T00:01:15.545Z","updated_at":"2025-04-25T00:01:56.978Z","avatar_url":"https://github.com/innei-template.png","language":"TypeScript","funding_links":[],"categories":["Resources"],"sub_categories":[],"readme":"# Nest Http Template\n\nA NestJS template, which used the coolest and fastest stuff.\n\n\u003cimg width=\"727\" alt=\"image\" src=\"https://user-images.githubusercontent.com/41265413/159869110-7704ddc4-d0ac-4cc4-9f34-b7b5568481f9.png\"\u003e\n\n## Which Tech Stack In Use\n\n- Framework: NestJS (Based on Fastify)\n- Language: TypeScript (Best practices, Not AnyScript)\n- Database ODM: Typegoose (Write schema once all in TypeScript)\n- Bundle Toolchain: @vercel/ncc Bundle (Bundle entry, go node_modules away)\n- Testing: Vitest (Test case write in TypeScript, fast and out-of-box)\n- Package Manager: PNPM (which is fastest)\n- DevOps: Docker\n- Other: Prettier, ESLint, Husky, Bump Version, etc.\n\n## How to start development\n\n```bash\nnpm run dev\n```\n\n## File Structure\n\n```\n.\n├── app.config.ts                 # 主程序配置，数据库、程序、第三方，一切可配置项\n├── app.controller.ts             # 主程序根控制器\n├── app.module.ts                 # 主程序根模块，负责各业务模块的聚合\n├── common                        # 存放中间件\n│   ├── adapters                  # 适配器的配置\n│   ├── decorator                 # 业务装饰器\n│   ├── exceptions                # 自定义异常\n│   ├── filters                   # 异常处理器\n│   ├── guard                     # 守卫与鉴权\n│   ├── interceptors              # 拦截器, 数据过滤与响应格式化处理\n│   ├── middlewares               # 传统意义上的中间件\n│   └── pipes                     # 管道\n├── constants                     # 常量\n├── main.ts                       # 引入配置，启动主程序，引入各种全局服务\n├── modules                       # 业务逻辑模块\n├── processors                      # 核心辅助模块\n│   ├── cache                       # Redis 缓存相关\n│   ├── database                    # Mongo 数据库相关\n│   ├── gateway                     # Socket.IO 相关\n│   ├── helper                      # 辅助类\n│   └── logger                      # 自定义 Logger\n├── shared                          # 通用模型\n│   ├── dto                         # 数据验证模型\n│   ├── interface                   # 接口\n│   └── model                       # 基本数据模型\n├── utils                           # 工具类\n├── bootstrap.ts                    # 引导程序\n└── main.ts                         # 入口\n\n```\n\n## Docs\n\nPlease visit [docs](./docs/) folder under this project.\n\n## Authors\n\n[Innei](https://github.com/innei).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInnei%2Fnest-http-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInnei%2Fnest-http-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInnei%2Fnest-http-boilerplate/lists"}