Wscats / news

:panda_face:Based on angular.js, weui and node.js rewrite news client - 新闻客户端
363 stars 83 forks source link

news #3

Open Wscats opened 7 years ago

Wscats commented 7 years ago

NPM安装

npm安装名为20的模块

npm install 20

找到模块下载后的位置,在node_modules的20文件夹下

cd /node_modules/20

通过npm安装本地服务第三方依赖模块(需要已安装Node.js),当然也可以先不安装依赖暂时省略这步,运行node http直接查看项目效果

npm install

执行node指令运行http.js

node http

用浏览器打开链接

http://localhost:12345/news/index.html

后端使用的是PHP框架

Wscats commented 7 years ago

Git下载安装

克隆项目地址并下载(需要已安装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 预编译入口
Wscats commented 7 years ago

Angular News

Use Weui and Angular prepared by the news client, Live Demo

Made with ❤︎ by Winds and Wscats

NPM version MIT License Linux Build Window Build Gitter

william-xue commented 7 years ago

npm install 20这个模块下不下来。。。直接跑 页面可以上来 tab切换不行 详情查看也不行