Open Wscats opened 7 years ago
克隆项目地址并下载(需要已安装Git)
git clone https://github.com/Wscats/news.git
启动服务(http://localhost:12345/news/index.html)
npm run dev
通过npm
安装本地服务第三方依赖模块(需要已安装Node.js),当然也可以先不安装依赖暂时省略这步,运行node http
直接查看项目效果
npm install
然后执行gulp构建项目文件和打开服务器等
npm run test
. ├── README.md ├── gulpfile //构建gulp配置文件 ├── http.js //服务器配置文件 ├── mime //服务器MINE文件 ├── newsApi.js //新闻接口配置文件 ├── package.json //项目配置文件 ├── turingApi.js //图灵机器人接口配置文件 ├── webroot //服务器文件夹 │ ├── assets //css js 和图片资源 │ ├── components // 各种组件 │ ├── views //各种页面 │ ├── vuex //vuex状态管理器 │ ├── filters.js //各种过滤器 │ └── main.js //Webpack 预编译入口
npm install 20这个模块下不下来。。。直接跑 页面可以上来 tab切换不行 详情查看也不行
NPM安装
npm安装名为20的模块
找到模块下载后的位置,在node_modules的20文件夹下
通过
npm
安装本地服务第三方依赖模块(需要已安装Node.js),当然也可以先不安装依赖暂时省略这步,运行node http
直接查看项目效果执行node指令运行http.js
用浏览器打开链接
后端使用的是PHP框架