1 Star 0 Fork 27

cong_wa/pixiJS

forked from 青ツ玉/pixiJS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
app.js 456 Bytes
一键复制 编辑 原始数据 按行查看 历史
青ツ玉 提交于 2020-04-28 14:50 . 修改readme + 格式化代码
const path = require('path')
const express = require('express')
const app = new express();
const port = process.env.PORT || 8080;
app.use(express.static('public'));
app.get('/*', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'index.html'));
})
app.listen(port, (error) => {
if (error) {
console.error(error);
} else {
console.info('==> Listening on port %s. Open up http://localhost:%s/ in your browser.', port, port);
}
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cong_wa/pixiJS.git
git@gitee.com:cong_wa/pixiJS.git
cong_wa
pixiJS
pixiJS
master

搜索帮助