Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muyunyun/gateway
使用 TypeScript + inversify + express 搭建的网关项目
https://github.com/muyunyun/gateway
express ioc typescript
Last synced: 20 days ago
JSON representation
使用 TypeScript + inversify + express 搭建的网关项目
- Host: GitHub
- URL: https://github.com/muyunyun/gateway
- Owner: MuYunyun
- Created: 2018-01-18T12:39:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T13:53:18.000Z (about 6 years ago)
- Last Synced: 2024-11-08T23:30:44.817Z (2 months ago)
- Topics: express, ioc, typescript
- Language: TypeScript
- Homepage:
- Size: 7.29 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
基于 IoC 模式搭建的网关应用。
> 可搭配 [reactSPA](https://github.com/MuYunyun/reactSPA) 一起使用
### 技术栈
TypeScript + Express + InversifyJs
### Usage
执行以下命令
```
npm start
npm run compile
```试试在浏览器请求接口 `http://localhost:4000/api/music/list?title=卡路里`
### articles
* [解读 IoC 框架 —— InversifyJS](https://github.com/MuYunyun/blog/blob/master/BasicSkill/系统架构篇/解读IoC框架InversifyJS.md)
* [RPC在点我达网关项目的实践一](https://github.com/MuYunyun/blog/blob/master/BasicSkill/系统篇/RPC在点我达网关的实践一.md)### 踩坑记录
#### 项目在 vscode 中的 debugger
* vscode 断点调试配置,项目使用 nodemon 启动,所以要在 nodemon.json 里进行相应配置
> Please note that this requires that your node program has been launched with the --debug argument since otherwise the debugger cannot attach to it.