https://github.com/laoer536/nodejs-koa2
for nodejs network
https://github.com/laoer536/nodejs-koa2
Last synced: 5 days ago
JSON representation
for nodejs network
- Host: GitHub
- URL: https://github.com/laoer536/nodejs-koa2
- Owner: laoer536
- Created: 2022-04-25T13:39:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T15:19:04.000Z (about 1 year ago)
- Last Synced: 2024-05-10T14:59:47.038Z (about 1 year ago)
- Language: TypeScript
- Size: 1.88 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nodejs-koa2
for nodejs network
## sponsor
[](https://api.gitsponsors.com/api/badge/link?p=Zhjd4eYaamBqkA8U9GP+JgT1/+SGjFH+9VJGRvyj4ibWGm0Sxdbq+nFihpK+CFypGgXMtv6Uvijb2fxPz5LMjcbnMueFYllwuO6qY3HyQedzXbob26WgoOD4KkOWl7FCJGZdeL6Ur6coNasJ/ab0Zw==)

- [x] jwt鉴权,token生成,登陆发送邮箱验证码
- [x] 邮箱发送
- [x] 环境变量
- [ ] 静态资源托管
- [ ] HTML history 模式实现,实现web history模式访问
- [x] 统一接口返回体
- [x] 全局错误捕获
- [ ] 文件上传下载
- [x] mysql的数据库链接与操作demo(使用prisma ORM)
- [ ] 定时任务
- [x] jaeger 接口服务监控
- [ ] more
## How to use
1. 安装docker
2. 执行
```docker
docker-compose up -d
```3. 下载代码zip并解压进入该项目中
4. 执行
```shell
pnpm i
``````shell
npx prisma migrate dev --name init
``````shell
pnpm dev:local
```OK, finish.
You can see

> jaeger监控服务地址:jaeger监控服务 `http://localhost:16686` ,每次请求调用服务后,就会有信息产生。