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的模板工程
- Host: GitHub
- URL: https://github.com/hobairiku/ts-egg-boilerplate
- Owner: HobaiRiku
- License: mit
- Created: 2018-06-17T02:12:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:46:48.000Z (over 2 years ago)
- Last Synced: 2023-03-04T11:24:40.934Z (about 2 years ago)
- Topics: egg, egg-mongodb, egg-mongoose, eggjs, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 3.23 MB
- Stars: 22
- Watchers: 1
- Forks: 2
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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写法。
####