Coder Social home page Coder Social logo

txfyteen / one-vue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gongph/one-vue

0.0 2.0 0.0 7.96 MB

仿韩寒「ONE · 一个」,基于vue2.0+混合式开发的一款跨终端、高性能、用户体验高的移动端App! 学习Vue的同学可以看下,感谢 Star 和 Fork!!

Home Page: http://wufazhuce.com

License: MIT License

CSS 9.89% HTML 1.33% JavaScript 31.01% Vue 57.77%

one-vue's Introduction

one-vue

仿韩寒「ONE · 一个」,基于vue2.0+混合式开发的一款跨终端、高性能、用户体验高的移动端App,使用服务端数据接口 one-api 进行开发。

技术架构

项目结构

.
├── assets
├── media
├── node_modules
├── src
│    ├── api              # 数据接口
│    ├── mixins           # Mixins
│    ├── models
│    ├── pages            # 页面
│    ├── store 
│    │     ├── modules    # 模块
│    │     ├── actions.js # 全局 actions
│    │     ├── getters.js # 全局 getters
│    │     ├── index.js   # 入口文件
│    │     └── mutation-types.js # 类型
│    │
│    ├── utils     # 工具文件夹
│    ├── app.css   # 组件样式
│    ├── app.js    # 入口文件
│    ├── api.vue   # 根组件
│    └── routes.js # 路由配置文件
│
├── build.js       # 编译后的文件
├── index.html
├── mainifest.json # app配置文件,需要配合 HBuilder 开发工具使用
├── package.json
├── webpack.config.js
└── yarn.lock     

项目截图

如何在本地运行?

  • 首先你需要安装 Node.js。选择不同版本下载安装即可。如果你安装到其他盘符可能会遇到一些环境变量的奇葩问题。 为了避免此类问题,还是按照默认路径安装吧。
  • 安装完 Node ,请按照下面的命令行安装 yarn 。这是因为项目模块依赖是用它来管理的,有关 npm vs yarn 请自行百度。
    # step1: 安装 yarn
    npm i yarn -g
    
    # step2: 安装成功后查看 yarn 版本
    yarn -V
  • 克隆或下载该项目。如果你本地安装了 Git,请使用如下命令行进行克隆,或者你可以下载源码然后解压到本地磁盘。有关 Git 教程,请看廖雪峰Git教程
    git clone [email protected]:gongph/one-vue.git
  • 安装模块。进入项目根目录打开终端执行如下命令行:
    yarn install
  • 执行如下命令行启动服务,并访问:localhost:8080
    npm run dev

注意: 建议谷歌浏览器调试,调试时请使用手机调试模式查看,快捷键(Ctrl+Shift+M)。

如何在真机上运行?

  • 首先你需要下载 HBuilder 开发工具,然后安装,邮箱注册一下。
  • 导入项目。
  • 将项目转成 App 项目。点击项目右键 - 成转换移动App
  • 手机连接电脑
  • 点击工具栏中的运行 - 手机运行 - 选择激活的手机设备,等待片刻即可。

LICENSE

MIT License

Copyright (c) 2017 gongph

one-vue's People

Contributors

gongph avatar

Watchers

James Cloos avatar  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.