你可以在搜索引擎内搜索node基础知识,以便入门node后端:
这是本站内的一些参考:跳坑《一百五十九》使用nodeJS作为小程序后端说明
Installation & Development
- clone this repo: git clone https://github.com/Alex-0407/weapp-51MingXingTu.git
- cd MingXingTuServer
- npm install
- run node app-27270.js from a terminal
- open the link http://localhost:8080/pic and http://localhost:8080/detail in the broswer
说明:以上是服务端运行步骤。抓取的数据是网址 http://www.27270.com/star/ 中明星酷里面的图片,只抓取了第一页的数据。