Coder Social home page Coder Social logo

99kyuu / vue-mobile-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnsenzhou/vue-mobile-starter

0.0 1.0 0.0 381 KB

☘ A starter project structure for Vue.js app.

Home Page: http://111.231.228.147:8001

License: MIT License

JavaScript 52.47% HTML 1.89% Vue 41.92% CSS 3.72%

vue-mobile-starter's Introduction

vue-mobile-starter · PyPI Packagist

View README in English

基于 vue2 + vuex + vue-router 构建的移动端单页微应用,适合于vue2、vuex、vue-router核心概念的理解与掌握。

前言

本项目虽说是一个十来个页面的小型项目,不过却涉及到vue模块的全局和局部应用配置、第三方UI组件的使用、vuex stroe的合理化配置、vue-router编程式的导航,路由子路由配置,路由信息对象等。非常适合于新手对vue核心开发理念的掌握。

之后会做一版 react + redux 的版本,感兴趣的同学可以持续关注哦。查看 React 版本

开源技术支持

  1. vue全家桶:vue2 + vuex + vue-router + vue-cli
  2. jsonplaceholder:一个简单的在线模拟REST API服务器
  3. axios:基于Promise 的 HTTP 请求客户端,可同时在浏览器和 node.js 中使用
  4. muse-ui:基于 Vue 2.0 和 Material Desigin 的 UI 组件库
  5. express:基于 Node.js 平台的 web 应用开发框架
  6. pm2:Node应用进程管理器

如何开发

# 克隆本仓库
git clone https://github.com/JohnsenZhou/vue-mobile-starter.git

# 进入仓库目录
cd vue-mobile-starter

# 安装依赖
npm install

# 启动项目,本地浏览地址 => localhost:8080
npm run dev

# 打包压缩
npm run build

目录结构

.
├── README.md            // README文件
├── build                // vue-cli生成的配置文件
├── config               // vue-cli生成的配置文件
├── config.dev.json      // 部署配置文件
├── config.prod.json     // 部署配置文件
├── index.html           // index入口文件
├── node_modules         
├── npm-shrinkwrap.json  // 依赖版本锁定
├── package.json         // npm 配置文件
├── pm2.json             // pm2 配置文件
├── server.js            // node 部署服务文件配置
├── src                  // 项目开发目录
│   ├── App.vue          // 项目主组件
│   ├── assets           // 资源文件夹
│   ├── components       // vue通用组件
│   ├── main.js          // vue实例入口文件
│   ├── router           // vue-router配置文件
│   ├── services         // 接口文件
│   ├── store            // vuex配置文件
│   ├── utils            // js通用工具组件
│   └── views            // vue视图页面
└── static               // 静态资源文件

效果演示

在线浏览Demo请戳这里

  1. 项目通过阿里云部署
  2. 想了解详细部署过程的同学请浏览 此文档

手机浏览请扫描下方二维码

在线浏览

License

MIT license.

vue-mobile-starter's People

Contributors

johnsenzhou avatar

Watchers

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