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:
在贡献之前,请阅读以下内容:
RealWorld guidelines for implementing a new framework,
实施新框架的RealWorld准则,
RealWorld frontend instructions
RealWorld前端说明
Realworld API endpoints
Realworld API端点
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 示例代码