Giter Site home page Giter Site logo

showdoc.js's Introduction

showdoc.js

Description

For leaning Nest framework, I just decide to rewrite the showdoc server api. So this is same as original but in different development language.

The version of showdoc correspond to this repository is 2.8.7. If you want to run the web, please copy the web directory from showdoc to the same directory where you've cloned this repository.

By the way, not all functions will be implemented.

Installation

# install
$ 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

TODO

please search 'todo' for more TODOs.

以下为空接口,待后面再补充,也可能不会做。

  1. /api/ScriptCron/run 由网站前台脚本触发的周期任务

  2. /api/update/checkDb 检测更新数据库

  3. api/adminUser/checkUpdate 检查 showdoc 的更新

踩过的坑

  1. 拦截器不能获取装饰器修改过的 statusCode,如 @HttpCode 和 @Redirect 。看这里

  2. 如果控制器中使用 @Res 参数,那么必须要在控制器里面调用 res.send,否则会没有返回。ps: 最新版本有个 passthrough 参数可以解决这个问题,看这里

showdoc.js's People

Contributors

missingmeow avatar

Stargazers

 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.