Giter Site home page Giter Site logo

oswaldliu / vue-home Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aermin/vue-home

0.0 0.0 0.0 955 KB

:house: A simple project(Vue Community SPA) which bases on vue+vue-cli+vue-router+axios+ scss.

Home Page: https://aermin.github.io/vue-home/dist/

JavaScript 26.77% HTML 0.73% Vue 72.01% CSS 0.49%

vue-home's Introduction

vue-home

技术点

用vue社区提供的API,基于vue+vue-cli+vue-router+axios+webpack开发的vue社区 SPA

UI用Muse-UI,css用scss,rem做移动端适配

建议先去社区注册拿accesstoken登录体验(注册可以直接用github账号,挺快的)

demo

点击查看gif动图展示

项目API

手机扫描查看效果

手机扫描查看效果

完成功能

  • 首页列表
  • 下拉加载
  • 用户信息(点击头像)
  • 主题内容
  • 登录功能
  • 收藏(取消收藏)主题
  • 评论列表
  • 点赞(取消点赞)功能
  • 消息中心(已读、未读)
  • 个人中心
  • 发表评论
  • 回复评论
  • 发布主题(支持markdown编辑且可预览)

安装运行

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

准备开发环境

  • $ cd vue-home
  • $ npm install
  • $ npm run dev

等写完项目后 打包上线

  • $ npm run build

项目结构

├── build
│   ├── build.js
│   ├── check-versions.js
│   ├── dev-client.js
│   ├── dev-server.js
│   ├── utils.js
│   ├── vue-loader.conf.js
│   ├── webpack.base.conf.js
│   ├── webpack.dev.conf.js
│   └── webpack.prod.conf.js
├── config
│   ├── dev.env.js
│   ├── index.js
│   └── prod.env.js
├── dist                  //等写完项目后 $ npm run build 的打包文件
│   ├── index.html
│   └── static
├── index.html            //首页入口文件
├── node_modules
├── package.json          
├── src
│   ├── App.vue           //项目入口文件
│   ├── assets
│   │   ├── 1495982696.png  //手机扫描二维码
│   │   ├── logo.png        //vue logo
│   │   └── sass            //sass通用样式
│   ├── components          //组件
│   │   ├── FooterNav.vue   //底部nav组件
│   │   ├── HeaderBar.vue   //顶部横条
│   │   ├── HeaderTabs.vue  //顶部tabs组件&主页面内容拉取
│   │   └── Hello.vue        
│   ├── main.js             //核心文件 在这里引入了Muse UI 时间过滤器
│   ├── pages               //页面
│   │   ├── content.vue     //帖子内容页面  
│   │   ├── index.vue       //首页
│   │   ├── login.vue       //登录页面
│   │   ├── message.vue     //信息通知页面
│   │   ├── more.vue        
│   │   ├── my.vue          //个人信息页面
│   │   ├── people.vue      //社区用户信息页面
│   │   └── publish.vue     //发布帖子页面
│   ├── router              //路由与组件配置
│   │   └── index.js 
│   └── util                //时间过滤器,转换时间格式
│       └── filter.js
└── static

vue-home's People

Contributors

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