运行节点服务器

sh
阅读 40 收藏 0 点赞 0 评论 0

http-server
# simulate a server using node
npm install http-server -g

# In your code directory create a folder called ‘server’, inside server place a file called ‘data.json’. Fill the file with some data like
{
    "name": "Donald Duck",
    "occupation": "none"
}

http-server ./
# If you navigate to http://127.0.0.1:8080/data.json in your browser you should now be able to see the file.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号