Git Product home page Git Product logo

c-node's Introduction

Vue-CLI实现CNode社区

本项目利用CNode社区提供的API,使用Vue-CLI手脚架、Vue组件、Vue-router搭建仿CNode社区项目,并重新布局。 预览地址:c-node

项目技术栈

  • Vue-CLI 3:对比Vue-CLI 2.x,3.x集成度更高,在创建项目时提供常用插件。
  • Vue-router:进行路径管理,利用hash模式模拟完整URL。
  • Axios:基于Promise,用于浏览器和Node.js的HTTP客户端,改写Vue原型链,并把Axios挂载其上。
  • 其他: JavaScript ES6, Vue.js transition和CSS 3结合, webpack打包配置等等。

项目架构

以下只列出最终页面及其相关组件部分:

|——index.html //Vue-CLI构建的最终SPA页面
|     |
|——App.vue //这是整个Vue项目的主组件,作为页面入口,其他组件都挂载到此组件中
|     |——Header.vue //头部栏组件
      |——Footer.vue //底部栏组件
|     |——pagination.vue //分页器,方便用户快速跳转页面
|     |——postList.vue //main views部分分为首页的文章列表、不同分类的文章列表
|     |——article.vue //点击文章题目能进入文章详情页
|     |__userInfo.vue //用户详情页,包括用户基本资料、创建的话题和回复的话题

c-node's People

Contributors

hefangs 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.