Giter Site home page Giter Site logo

objectivezhou / plato Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jingleo/plato

0.0 2.0 0.0 3.01 MB

:heart: a Boilerplate for SPAs use vue, vuex, vue-router

Home Page: http://crossjs.com/plato

Shell 0.76% JavaScript 53.57% Vue 39.80% HTML 0.53% CSS 5.34%

plato's Introduction

PLATO 🚧 Gitter

❤️ a Boilerplate for SPAs use vue, vuex, vue-router

Online Demo, Documentation

Travis dependencies devDependency Status

  • ✅ Plugins like vuex, i18n, validator and ajax are almost ready, could be used in production amusedly.
  • ❎ UI components are NOT stable, could be changed anytime.

mindmap

Change Log

  • 20160715
  • 20160709 ⚠️ Breaking Changes
  • 20160704 ⚠️ Breaking Changes
  • 20160701
    • make plato simple: remove built-in components, use plato-components
  • 20160630
    • update npm scripts
  • 20160629
  • 20160625
    • 增加阿拉伯语演示
  • 20160624
    • 演示网站增加文档页面
    • c-textfield 支持自定义 type
    • m-field 移除 _attrs,validate 不再合入 attrs
    • m-field 增加 align 属性
  • 20160623
    • 移除 vx/utils
    • 移除 request 的 hooks
    • 优化 request 的错误处理
    • progress、toasts 移到 vx/middlewares 中处理
    • 升级 vuex-promise
  • 20160622
    • 🚧 简化 i18n 使用
    • 为保证数据都在 vuex 管理,默认不启用 plugins/ajax
    • 移除 c-value
    • 优化 c-modal
    • 增加 action sheet 演示(基于 c-modal)
  • 20160620
    • 移除 <router-view> 中的 transition-mode #5
  • 20160619
    • 使用 icomoon 管理图标字体,因为 iconfont 不支持连体字符

Principles

  • 使用 ES6 编写
  • 使用 .vue 单文件组件
    • 逻辑尽量写在 script 里,保持 template 逻辑简单
  • 向 vue@2 靠拢
  • 不限制使用何种 UI 组件,可以使用第三方,或自己开发(请尽量考虑复用性)
  • 尽量使用小的依赖库

Troubleshooting

Usage

# install dependencies
npm install

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

# serve with mocking. see mocks in /apis
npm run dev:mock

# clean
npm run clean

# build for production with minification
npm run compile

# run server in production
npm start

# run unit tests
npm run unit

# run lint and unit
npm test

Backend

使用 koa@2 实现开发调试服务

若要寻找“完整”的后端,请访问分支 backend

Appendix

plato's People

Contributors

crossjs avatar

Watchers

 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.