Git Product home page Git Product logo

gseditorservice's Introduction

Description

Nest

Only Used to Study

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

服务启动

# To run MongoDB (i.e. the mongod process) as a macOS service, run:
$ brew services start [email protected]

# To stop a mongod running as a macOS service, use the following command as needed:
$ brew services stop [email protected]

# To run MongoDB (i.e. the mongod process) manually as a background process, run:
#For macOS running on Apple M1 processors:
$ mongod --config /opt/homebrew/etc/mongod.conf --fork

Other

一、什么是DTO?

参考文献 https://zhuanlan.zhihu.com/p/381739245

数据传输对象(DTO)(Data Transfer Object),是一种设计模式之间传输数据的软件应用系统。 数据传输目标往往是数据访问对象从数据库中检索数据。 数据传输对象与数据交互对象或数据访问对象之间的差异是一个以不具有任何行为除了存储和检索的数据(访问和存取器)。

官方说明: https://nestjs.bootcss.com/controllers

nestjs支持interface定义,但更推荐试用dto模式类。与ts的interface类似,但ts在转义后会被移除,而基于es6的类dto会被保留为实体。

gseditorservice's People

Contributors

kamilmysliwiec avatar renovate-bot avatar mygzmx avatar sacro avatar dependabot[bot] avatar alsoicode avatar progral avatar mchelen avatar micalevisk avatar hiagodotme avatar beeman avatar allenfang avatar nosfistis avatar rpihlak avatar rubencodeforges avatar rubiin avatar lambdacasserole avatar blazeu avatar tony133 avatar yurykozhenov avatar fishuke avatar fanybook avatar schinvendy avatar whitekiwi avatar maximzinovik avatar brunnerlivio avatar konradlinkowski avatar jajaperson avatar elylucas avatar e-watson avatar

Watchers

James Cloos 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.