Coder Social home page Coder Social logo

nestjs-plus's Introduction

NestJs-plus(mongodb版)

使用 Nest 构建,一个简单的用户发帖系统。

特别地

由特殊编程人员Asciphx修正,为支持mongodb,jwt,websocket,pm2。 原贴地址 dzzzzzy/Nestjs-Learning

主要特性

  • 使用 Typescript,强类型语言、类型推断机制、编译期类型检查等,为后端开发和维护提供了很好的支持
  • 模块化开发,让应用程序更容易分层,提供了易于使用的模块化管理机制
  • 内置 IOC 容器,大量使用依赖注入,开发更便捷、更高效
  • 轻松编写 AOP 代码,面向切面编程,轻松实现日志、拦截器、过滤器等功能
  • 支持 TypeORM,最好的 Typescript ORM 框架,轻松编写 DAO 层的各类逻辑
  • 轻松构建 MVC、API、websocket、微服务等系统
  • ......

框架 Github 地址: Nest 🎁

框架文档

官方文档 中文文档

相关技术文档

Nest 学习手册

由于官方文档更新较为频繁,推荐大家尽可能的查阅官方文档进行学习

Demo

  • CRUD Restful API Demo Restful 风格的增删改查示例项目。
  • GraphQL API Demo GraphQL 风格的增删改查示例项目,包含简单的 GraphQL 订阅功能。
  • easy-post 便利贴,包含用户登录注册,用户授权、用户认证、帖子管理、用户管理等功能。

功能

  • 注册
  • 登录
  • 用户授权(jwt)
  • 用户认证(简单的RBAC)
  • 用户管理
  • 帖子管理

项目结构

  • common 用于存放公共的 interface、decorators
  • core 用于存放核心的 auth、guards、interceprots
  • feature 用于存放系统业务模块,用户模块、帖子模块
# 安装依赖
$ yarn install

# 创建 test 数据库

# 启动程序
$ yarn run start

nestjs-plus's People

Contributors

asciphx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.