2 Star 18 Fork 8

likeAskingWhy/base-server-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
server.js 596 Bytes
一键复制 编辑 原始数据 按行查看 历史
likeAskingWhy 提交于 2021-09-30 15:08 . 初始化模板
const express = require('express')
const app = express()
app.use('/', express.static('public'))
app.use('/uploads', express.static(__dirname + '/uploads'))
app.use(express.json())
app.set('SECRET', 'SMART_SCHOOL_MANAGE_PLATFORM_2021_0815')
require('./plugins/db')(app)
require('./routes')(app)
const { getIPAdress } = require('./utils/ipConfig')
const host = getIPAdress()
const port = 8125
app.listen(port, host, () => {
console.log(`http://${host}:${port} has been already started ...`);
})
// app.listen(8088, () => {
// console.log(`8088 has been already started ...`);
// })
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/likeaskingwhy/base-server-project.git
git@gitee.com:likeaskingwhy/base-server-project.git
likeaskingwhy
base-server-project
base-server-project
master

搜索帮助