Code Monkey home page Code Monkey logo

angular-news's Introduction

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

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

angular-news's People

Contributors

autumnswind avatar windiest avatar wscats avatar yaoone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-news's Issues

Github Chinese Ranked Users

C:
July https://github.com/julycoding
云风 https://github.com/cloudwu
Xinchen Hui https://github.com/laruence

C#:
Kerry Jiang https://github.com/kerryjiang
Jeffrey Su https://github.com/JeffreySu
Tony Qu http://githuber.cn/people/772561

C++:
ideawu https://github.com/ideawu
Hao Chen https://github.com/haoel
Shuo Chen https://github.com/chenshuo

CSS:
梁杰 https://github.com/numbbbbb
Ruan YiFeng https://github.com/ruanyf
Chen Yijun https://github.com/ethantw

CoffeeScript:
ZhengHaibo https://github.com/leeluolee
Fred Wu https://github.com/fredwu
Jinzhu https://github.com/jinzhu

Emacs Lisp:
Chris Feng https://github.com/ch11ng
Xiao Hanyu https://github.com/xiaohanyu
winterTTr https://github.com/winterTTr

Go:
astaxie https://github.com/astaxie
Jinzhu https://github.com/astaxie
Chen Yufei https://github.com/cyfdecyf

HTML:
lifesinger https://github.com/lifesinger
小鱼 https://github.com/sofish
Alien https://github.com/zxlie

Java:
代码家 https://github.com/daimajia
Huqiu Liao https://github.com/liaohuqiu
Trinea https://github.com/Trinea

JavaScript:
Evan You https://github.com/yyx990803
Jackson Tian https://github.com/JacksonTian
小鱼 https://github.com/JacksonTian

Lua:
Robert Gabriel Jakabosky https://github.com/Neopallium
Daogang Tang https://github.com/daogangtang
云风 https://github.com/cloudwu

Objective-C:
M了个J https://github.com/CoderMJLee
Kevin https://github.com/kevinzhow
Jiangang Zhu https://github.com/levey

PHP:
walkor https://github.com/walkor
dodge https://github.com/dodgepudding
ThinkPHP https://github.com/liu21st https://github.com/liu21st

Perl:
Weibin Yao(姚伟斌) https://github.com/yaoweibin
Fayland Lam https://github.com/fayland
健美猫 https://github.com/weijianwen

Python:
Sun Junyi https://github.com/fxsjy
Hsiaoming Yang https://github.com/lepture
Tang Qiao https://github.com/tangqiaoboy

Ruby:
Richard Huang https://github.com/flyerhzm
Jason Lee https://github.com/huacnlee
Rei https://github.com/chloerei

Scala:
涂名雷 https://github.com/tminglei
oldpig https://github.com/Centaur
Lijie Xu https://github.com/JerryLead

Shell:
Lex Tang, https://github.com/lexrus
庄表伟, https://github.com/zhuangbiaowei
J.D.Song https://github.com/zhuangbiaowei

Swift:
Lex Tang, https://github.com/lexrus
JohnLui, https://github.com/johnlui
Kevin https://github.com/kevinzhow

VimL:
wklken, https://github.com/wklken
yangyangwithgnu, https://github.com/yangyangwithgnu
Ma Weiwei https://github.com/ma6174

From ZhiHu Robert Zh

目錄

是不是要放個目錄 TOC,可快速跳轉主題。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.