
工程实践github 授权登录
源代码地址 准备前提 在 github 的 setting 中找到 client_id 和 client_secret,具体参考 怎么得到 client_id 和 client_secret 搭建前端和后端服务器,我这里前端是 vue,后端是 koa webpack 注意代理的设置 安装 nodemon 开启环境 npm install npm run server npm run dev 前端
分类工程实践共匹配15条公开文章。
源代码地址 准备前提 在 github 的 setting 中找到 client_id 和 client_secret,具体参考 怎么得到 client_id 和 client_secret 搭建前端和后端服务器,我这里前端是 vue,后端是 koa webpack 注意代理的设置 安装 nodemon 开启环境 npm install npm run server npm run dev 前端
代码地址 import msgboxVue from './index.vue' // 定义插件对象 const MessageBox = {} // vue的install方法,用于定义vue插件 MessageBox.install = function(Vue, options) { const MessageBoxInstance = Vue.extend(msgboxVu
[代码地址](https://github.com/dirkhe1051931999/common-demo) 服务端接口以及中间件 依赖的包 const Koa = require('koa'); // 解析成json const koaJson = require('koa-json'); // 解析body的 const bodyParser = requir
项目的增删改查代码可参考项目下 /server/api/post.controller.js 项目的表结构 -- ---------------------------- -- Table structure for laboratory -- ---------------------------- DROP TABLE IF EXISTS `laboratory`; CREATE TABLE
标签的增删改查代码可参考项目下 /server/api/laboratory.controller.js 标签的表结构 -- ---------------------------- -- Table structure for post_tag -- ---------------------------- DROP TABLE IF EXISTS `post_tag`; CREATE TABL
分类的增删改查代码可参考项目下 /server/api/category.controller.js 分类的表结构 -- ---------------------------- -- Table structure for category -- ---------------------------- DROP TABLE IF EXISTS `category`; CREATE TABLE
文章的增删改查代码可参考项目下 /server/api/post.controller.js 文章的表结构 -- ---------------------------- -- Table structure for post -- ---------------------------- DROP TABLE IF EXISTS `post`; CREATE TABLE `post` ( `id
socket 是一种双向通信协议,可以实现当第一个 HTTP 请求建立 TCP 连接后,之后的请求都不用再发 HTTP 请求了,socket 分为服务端和客户端,双方都可主动互发或接收数据。 socket 服务端的使用 const Koa = require('koa'); const http = require('http'); const app = new
redis 是一个高性能 key-value 数据库,但还支持多种数据结构的存储,比如 hash,set,list 等。redis 是一个内存数据库,常用用来做计数器,队列。mysql 可以理解是磁盘数据库,每张表对应的数据库目录下有 table_name.frm 文件,存储的是表定义信息,有 64kb 的限制,但是 mysql 有些临时表超过限制后也会存在内存中。redis 相对比 mysql
const Koa = require('koa'); const app = new Koa(); const mysql = require('mysql'); // mysql配置相关 const config = { host: '127.0.0.1', user: 'root', password: '123'
确认操作
请再次确认编辑图片
待上传图片 (剩余 0 张)
项目详情
确认评论邮箱
邀请制评论