All Projects → mykurisu → fast-nest

mykurisu / fast-nest

Licence: other
帮助您快速初始化基于Nest.js的node后端服务

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to fast-nest

Nestjs Typegoose
Typegoose with NestJS
Stars: ✭ 215 (+877.27%)
Mutual labels:  nestjs
Typeorm Transactional Cls Hooked
A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
Stars: ✭ 251 (+1040.91%)
Mutual labels:  nestjs
nest-queue
Queue manager for NestJS Framework for Redis (via bull package)
Stars: ✭ 69 (+213.64%)
Mutual labels:  nestjs
Notadd
A microservice development architecture based on nest.js. —— 基于 Nest.js 的微服务开发架构。
Stars: ✭ 2,556 (+11518.18%)
Mutual labels:  nestjs
Amplication
Amplication is an open‑source development tool. It helps you develop quality Node.js applications without spending time on repetitive coding tasks.
Stars: ✭ 3,630 (+16400%)
Mutual labels:  nestjs
nestjs-api-mongoose
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, etc. for the NestJS community 😻
Stars: ✭ 153 (+595.45%)
Mutual labels:  nestjs
Passport
Passport module for Nest framework (node.js) 🔑
Stars: ✭ 211 (+859.09%)
Mutual labels:  nestjs
nodejs-integration-tests-best-practices
✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (April 2022)
Stars: ✭ 2,842 (+12818.18%)
Mutual labels:  nestjs
Nest Mean
NestJS Tutorial Repository
Stars: ✭ 250 (+1036.36%)
Mutual labels:  nestjs
twitch-project
A weekly stream in which I build a web application with Neo4j and Typescript
Stars: ✭ 78 (+254.55%)
Mutual labels:  nestjs
Typescript Clean Architecture
It is my attempt to create Clean Architecture based application in Typescript
Stars: ✭ 225 (+922.73%)
Mutual labels:  nestjs
Jwt
JWT utilities module based on the jsonwebtoken package 🔓
Stars: ✭ 232 (+954.55%)
Mutual labels:  nestjs
nestjs-api-example
NestJS Example
Stars: ✭ 60 (+172.73%)
Mutual labels:  nestjs
Nestjs Email Authentication
Nestjs Starter using Mongodb and Passportjs
Stars: ✭ 222 (+909.09%)
Mutual labels:  nestjs
nest-microservices
Small user management system using nest microservices
Stars: ✭ 35 (+59.09%)
Mutual labels:  nestjs
Stator
Stator, your go-to template for the perfect stack. 😍🙏
Stars: ✭ 217 (+886.36%)
Mutual labels:  nestjs
MyAPI
A template to create awesome APIs easily ⚡️
Stars: ✭ 117 (+431.82%)
Mutual labels:  nestjs
nest-next-sample
NestJS + Next.js sample application / Backend and Frontend use only TypeScript!!!
Stars: ✭ 110 (+400%)
Mutual labels:  nestjs
devon4node
devonfw node.js stack - create enterprise-grade business apps in node.js safe and fast
Stars: ✭ 23 (+4.55%)
Mutual labels:  nestjs
nestjs-ratelimiter
Distributed consistent flexible NestJS rate limiter based on Redis
Stars: ✭ 49 (+122.73%)
Mutual labels:  nestjs

Fast-Nest

帮助你快速初始化基于Nest.js的node后端服务

本项目适用:

  • node简易应用初始化
  • node项目初学试验
  • 有兴趣的童鞋亦可作为项目脚手架(项目内都是基础功能与结构,是可以作为简单的脚手架的)

食用前

  • 希望使用者有JavaScript基础,熟悉typescript更佳。
  • 希望有简单node应用开发基础(可选)
  • 希望能先了解Nest.js框架(传送门)

如何启动项目

git clone https://github.com/mykurisu/fast-nest.git

cd fase-nest

npm install

npm start

如代码所示,将本项目克隆至本地,安装好依赖即可启动服务,默认端口为8000,若需要调整请在根目录的config.ts中进行调整。

项目启动后,如果没有启动本地的MongoDB会出现超时的报错,这时有三种方案:

① 将common.module中的mongo公共服务挂载删除

② 本地启动MongoDB,连接数据库的配置亦在config.ts

③ 连接远端的MongoDB,配置也在config.ts内填写

温馨提示:数据库地址不宜暴露在GIT项目中,建议数据库配置写在settings.json中,部署时再自行创建配置文件。

项目内容

  • 小而全的Node项目目录结构
  • 按照核心、功能以及公共三个维度进行模块划分
  • 内置格式化返回数据的拦截器
  • 内置格式化返回错误信息的过滤器
  • 内置符合容器规范的日志中间件
  • 内置MongoDB初始化服务
  • 内置服务接口文档生成功能
  • 内置模块创建脚本
  • 内置文件上传模块
  • 内置缓存模块
  • 打包发布,兼容node容器发布模式

项目指令

npm start 启动项目

npm run build 打包项目输出js到build文件夹

npm run deploy 打包项目输出js并直接运行

npm run deploy:pm2 通过pm2将项目运行,具体配置可以在 pm2.json 中进行更改

npm run doc 一键输出服务内的所有模块与接口信息

npm run create ${ModuleName} 一键新建模块

有关项目的开发实录

最后

如果对大家有帮助,不妨为我点个star。该项目会长期维护,争取成为真正的应用脚手架。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].