随笔分类 - nodejs
摘要:代码: const fastify = require("fastify")(); const md5 = require('md5'); const querystring = require('querystring'); //npm install fastify var secretKey
阅读全文
摘要:代码: var restify=require('restify') var server=restify.createServer() const md5 = require('md5'); const querystring = require('querystring'); //npm ins
阅读全文
摘要:代码: const Hapi = require('hapi'); const md5 = require('md5'); const server = new Hapi.Server({ port: 1101 }); //npm install hapi var secretKey = 'saac
阅读全文
摘要:代码: const Koa = require('koa'); const Router = require('koa-router'); const md5 = require('md5'); //npm install koa koa-router const app = new Koa();
阅读全文
摘要:代码: const express = require('express'); const app = express(); const md5 = require('md5'); //npm install express var secretKey = 'saacac3423@21212'; v
阅读全文
摘要:common.js function setCookie(name, value, daysToLive = 7) { let cookie = name + "=" + encodeURIComponent(value); if (typeof daysToLive "number") { coo
阅读全文
摘要:目录结构 nginx配置: upstream bbs_upstream { server 127.0.0.1:1081; #php server 127.0.0.1:1086; #csharpe server 127.0.0.1:1087; #java server 127.0.0.1:1084;
阅读全文