Angular-news

:panda_face:基于angular.js,weui和node.js重写的新闻客户端 Based on angular.js, weui and node.js rewrite news client

  • Owner: windiest/Angular-news
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Installation(Git)

克隆项目地址并下载(需要已安装Git),点击预览(移动端效果更佳)新增Vue2版本

git clone https://github.com/Wscats/news.git

启动服务(http://localhost:12345/news/index.html)

npm run dev

Building

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

npm install

然后执行gulp构建项目文件和打开服务器等

npm run test

Installation(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

License

MIT
Copyright (c) 2016 Winds❤︎Wscats

Back-end(PHP)

后端源码地址
登录界面:
url根据服务器域名对应更改(例如本机url就是localhost)

url/news/php/index.php/login
main = url/news/php/index.php

登录接口, Port, URL, Method, -, -, -, 登录接口, main/login_api/login, POST, Params, Other, -, -, username,password, 账号:yaojialong,12345678, ### 频道接口, Port, URL, Method, -, -, -, 频道接口, main/news_api/get_channel, GET, Params, Other, -, -, 无, ### 自动登录接口, Port, URL, Method, -, -, -, 自动登录接口, main/login_api/auto_login, POST, Params, Other, -, -, username,token, ### 根据频道显示对应新闻, Port, URL, Method, -, -, -, 根据频道显示对应新闻, main/news_api/show_detail_by_channel_id, GET, Params, Other, -, -, page,channel_id, 例如:channel_id:4 军事 6 推荐 7 热点 8 娱乐, ### 新闻根据id显示详细内容的接口, Port, URL, Method, -, -, -, 新闻根据id显示详细内容的接口, main/news_api/show_detail, GET, Params, Other, -, -, id, ### 注册用户的接口, Port, URL, Method, -, -, -, 注册用户的接口, main/login_api/register, POST, Params, Other, -, -, params{username,password}, ### 插入新闻的接口, Port, URL, Method, -, -, -, 插入新闻的接口, main/news_api/insert_news, GET, Params, Other, -, -, title,text, ### 删除新闻的接口, Port, URL, Method, -, -, -, 删除新闻的接口, main/news_api/delete_news, GET, Params, Other, -, -, id

Main metrics

Overview
Name With Ownerwindiest/Angular-news
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 4)
Platform
License:
所有者活动
Created At2015-09-08 03:15:50
Pushed At2017-05-22 01:35:43
Last Commit At2017-05-22 09:35:42
Release Count0
用户参与
Stargazers Count1k
Watchers Count99
Fork Count301
Commits Count69
Has Issues Enabled
Issues Count8
Issue Open Count8
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private