https://github.com/asing1001/vue-cms-integration-demo
Demo how to integration vue.js with CMS
https://github.com/asing1001/vue-cms-integration-demo
async-component cms vue
Last synced: about 1 month ago
JSON representation
Demo how to integration vue.js with CMS
- Host: GitHub
- URL: https://github.com/asing1001/vue-cms-integration-demo
- Owner: Asing1001
- Created: 2017-06-09T08:15:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T15:49:17.000Z (about 9 years ago)
- Last Synced: 2025-03-21T22:45:27.821Z (about 1 year ago)
- Topics: async-component, cms, vue
- Language: JavaScript
- Homepage: https://www.paddingleft.com/Vue-CMS-integration-demo/
- Size: 1.96 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue CMS integration demo
> [Live demo](https://www.paddingleft.com/Vue-CMS-integration-demo/) how to integration CMS in Vue.js
## How things work
Logic could find in [main.js](./src/main.js)
1. [async Component](https://vuejs.org/v2/guide/components.html#Async-Components) `cms-subscriber` fetch CMS data
2. Set CMS content as `cms-subscriber`'s template
3. Vue.js will handle any custom directive or component in the template
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
```