Code Monkey home page Code Monkey logo

vue-zhihu-daily's Introduction

知乎日报 with Vuejs

A Vue.js & Nodejs project

声明:『知乎』是 知乎. Inc 的注册商标。本软件与其代码非由知乎创作或维护。软件中所包含的信息与内容皆违反版权与知乎用户协议。它是一个免费软件,使用它不收取您任何费用。其中的所有内容均可在知乎获取。

Preview

手机端 mobile-preview 桌面端 Preview

Live demo

在线演示地址live demo link

Features

  • Light weighted
  • No ads

Related content

  • Vue.js
  • vue-router
  • vue-resource
  • vuex
  • webpack
  • express
  • docker

How to run

# install dependencies
npm install

# run server
npm start

TODO

  • image src cache in server

License

This project is available under the MIT license.

感谢 ZhihuDailyPurify整理了API

vue-zhihu-daily's People

Contributors

hilongjw 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

vue-zhihu-daily's Issues

mac上代码无法运行

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/chenjun/repos/me/vue-demo/vue-zhihu-daily/node_modules/.bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle [email protected]~start: CWD: /Users/chenjun/repos/me/vue-demo/vue-zhihu-daily
11 silly lifecycle [email protected]~start: Args: [ '-c', 'cd server && node app' ]
12 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: `cd server && node app`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:818:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd /Users/chenjun/repos/me/vue-demo/vue-zhihu-daily
17 error Darwin 16.3.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v5.0.0
20 error npm  v3.10.5
21 error code ELIFECYCLE
22 error [email protected] start: `cd server && node app`
22 error Exit status 1
23 error Failed at the [email protected] start script 'cd server && node app'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the vue-zhihu-daily package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     cd server && node app
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs vue-zhihu-daily
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls vue-zhihu-daily
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

npm报错提示如上

咨询 ,启动界面图像为什么我设置不成功?

通过接口拿到启动界面图像数据, 图像是https的 ,但是界面不显示

  <img v-bind:src="startImage.img">
startImage: {
          img: 'https://pic4.zhimg.com/70444c83a9bd41c226e01508e7aeb36d.jpg'
        }

请问有做过这个尝试么

node的问题

请问如果没有nodejs的基础的话,是不是暂时不推荐学习这个项目的?
还有这里的node应该只做了图片缓存的吧?
imagebox.js是您自己写出来的吗?太厉害了

npm start 报错

E:\vue\zhihu>npm start

> [email protected] start E:\vue\zhihu
> cd server && node app

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: listen EACCES 0.0.0.0:80
    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at Server._listen2 (net.js:1221:19)
    at listen (net.js:1270:10)
    at Server.listen (net.js:1366:5)
    at EventEmitter.listen (E:\vue\zhihu\node_modules\.4.14.0@express\lib\applic
ation.js:617:24)
    at Object.<anonymous> (E:\vue\zhihu\server\app.js:25:5)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)

news.vue报错 正则

const imgReg = /<img\s[^>]?src\s=\s*'"['"][^>]?>/g
改为
const imgReg = /<img\s[^>]
?src\s*=\s*'"['"][^>]*?>/g
就好了

再就是要自己在装下vuex-router-sync

整个程序就能启动了。

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.