Giter Site home page Giter Site logo

daily-zhihu's Introduction

知乎日报

声明

api来自知乎( 知乎Zhihu ), 项目中所有内容的一切权利属于知乎, 本项目所有内容及代码仅供私下学习参考, 不得作为其他用途

简介

  • 学习Vue.js蛮久的了, 也看了不少别人写的知乎日报, 干脆自己也拿日报练练手, 该项目使用vue-cli构建、打包, 配合vue全家桶(vue、vuex、vue-router)进行编码、使用axios进行资源请求

  • api使用node.js进行二次封装解决跨域问题, node使用Heroku进行部署

  • 使用sketch设计页面, 向着简约的方向做了一版

  • 图片防盗链问题使用以下meta标签解决。http协议中如果从一个网页跳到另一个网页,http头字段里面会带个referer,图片服务器通过检测referer是否来自规定域名,来进行防盗链。如果没有referer,服务器会认为是浏览器直接打开了文件,所以可以正常显示。

    <meta name="referrer" content="never">
  • 欢迎issue、fork、star😁

预览

预览

建议在手机或F12手机模式下浏览

运行方法

npm install
npm run dev

Tip

This relative module was not found:
./views/con in ./src/router.js

好多同学运行项目报如上错误,应该是 windows 系统不允许创建名称为 con 的文件解压错误所致,现在 con 文件已经修改为 article ,windows下解压运行不会再报错了😎

License

MIT

daily-zhihu's People

Contributors

chenjintaox avatar walleeeee avatar

Watchers

 avatar

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.