![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodejs
垃圾侠
这个作者很懒,什么都没留下…
展开
-
koa2基础入门(新手快速上手)
安装koa2 # 初始化package.json npm init # 安装koa2 npm install koa 新建index.js const Koa = require('koa') const app = new Koa() app.use( async ( ctx ) => { ctx.body = 'hello koa2' }) app.listen(3000) console.log('[demo] start-quick is starting at port原创 2020-10-21 14:44:32 · 562 阅读 · 0 评论 -
egg.js使用oAuth2.0鉴权,egg-oauth2-server用法
egg-oauth2-server官方文档:https://github.com/Azard/egg-oauth2-server egg-oauth2-server官方文档提供的实现例子:https://github.com/Azard/egg-oauth2-server/blob/master/test/fixtures/apps/oauth2-server-test/app/extend/oauth.js egg-oauth2-server官方文档的实例讲解(不是最新,只做参考):https://c原创 2020-07-20 16:08:50 · 2092 阅读 · 0 评论