An open API service indexing awesome lists of open source software.

https://github.com/hobairiku/ts-egg-boilerplate

一个使用ts的egg+mongoose的模板工程
https://github.com/hobairiku/ts-egg-boilerplate

egg egg-mongodb egg-mongoose eggjs ts typescript

Last synced: 6 months ago
JSON representation

一个使用ts的egg+mongoose的模板工程

Awesome Lists containing this project

README

        

# 一个TypeScript+egg+mongoose编写的应用模板

目前使用egg以及mongoose编写restful服务端总结出的一个项目模板。

适合喜欢用egg,然后又想用ts,最后还想用mongodb写restful应用服务的朋友。

#### 其功能主要包含:

* typescript写egg的各种方式
* typscript写mongoose的方法以及如何注入egg-mongoose(model)
* egg中多worker下使用socket.io广播
* 针对mongoose实现restful的BaseController和BaseServer(快速生成query查询和mongoose模糊查询、entity实体字段、公用的index和show方法)
* 基于jwt的有状态的账户和登录模块

#### 本项目基于:

大神[whxaxes](https://github.com/whxaxes)的项目:[whxaxes/egg-boilerplate-d-ts](https://github.com/whxaxes/egg-boilerplate-d-ts),感谢大神提供ts写法。

####