vue.js 示例代码_Vue.js代码库包含实际示例

vue.js 示例代码

虚拟现实 (vue-realworld)

Fork vue-realworld-example-app.

前叉vue-realworld-example-app。

Vue.js codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

Vue.js代码库包含遵循RealWorld规范和API的真实示例(CRUD,身份验证,高级模式等)。

This codebase was created to demonstrate a fully fledged fullstack application built with Vue.js including CRUD operations, authentication, routing, pagination, and more.

创建该代码库的目的是演示使用Vue.js构建的完整的全栈应用程序,包括CRUD操作,身份验证,路由,分页等。

We've gone to great lengths to adhere to the Vue.js community styleguides & best practices.

我们竭尽全力遵守Vue.js社区样式指南和最佳实践。

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

有关如何与其他前端/后端一起使用的更多信息,请转至RealWorld存储库。

入门 (Getting started)

Before contributing please read the following:

在贡献之前,请阅读以下内容:

  1. RealWorld guidelines for implementing a new framework,

    实施新框架的RealWorld准则,

  2. RealWorld frontend instructions

    RealWorld前端说明

  3. Realworld API endpoints

    Realworld API端点

  4. Vue.js styleguide. Priority A and B categories must be respected.

    Vue.js样式指南。 必须尊重优先级A和B。

The stack is built using vue-cli webpack so to get started all you have to do is:

该堆栈是使用vue-cli webpack构建的,因此,您只需执行以下操作即可:

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

Other commands available are:

其他可用命令包括:

# build for production with minification
npm run build

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

# run single unit tests
npm run unit

# run continous unit tests
npm run units

# run e2e tests
npm run e2e

# run all tests
npm test

要知道 (To know)

Current arbitrary choices are:

当前的任意选择是:

  • Vuex modules for store

    Vuex商店模块

  • Vue-axios for ajax requests

    Vue-Axios用于Ajax请求

  • Standard for linting

    棉绒标准

  • 'rwv' as prefix for components

    'rwv'作为组件的前缀

翻译自: https://vuejsexamples.com/vue-js-codebase-containing-real-world-examples/

vue.js 示例代码

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值