Last active
October 6, 2017 10:47
-
-
Save likai24/9496ce34972f8231b6b59fc82ff6fad3 to your computer and use it in GitHub Desktop.
一个简单的文件服务器
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
app.use(express.static('./folder')); | |
app.listen(3000, function () { | |
console.log('Example app listening on port 3000!') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment