Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

news #3

Open
Wscats opened this issue Dec 8, 2016 · 3 comments
Open

news #3

Wscats opened this issue Dec 8, 2016 · 3 comments

Comments

@Wscats
Copy link
Owner

Wscats commented Dec 8, 2016

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
Copy link
Owner Author

Wscats commented Dec 11, 2016

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
Copy link
Owner Author

Wscats commented Dec 11, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants