Giter VIP home page Giter VIP logo

fast-nest's Introduction

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

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

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

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

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

这个项目内有什么料

  • 一套可运行的nest项目代码(废话)
  • 小而全的Node项目目录结构
  • 按照核心、功能以及公共三个维度进行模块划分
  • 核心模块
    • 内置格式化返回数据的拦截器
    • 内置格式化返回错误信息的过滤器
    • 内置简易日志中间件
  • 公共模块
    • 内置MongoDB初始化服务
    • 内置腾讯云静态储存初始化服务
  • 功能模块
    • 内置简易用户信息获取模块
    • 内置文件上传模块(支持上传到腾讯云)
  • 打包发布

有关项目的开发实录

(待补充)

最后

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

fast-nest's People

Contributors

mykurisu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.