bstavroulakis/vue-wordpress-pwa
关于
使用 Vue.js、WordPress REST API 和渐进式 Web 应用构建的离线优先单页应用(SPA)。
网站与应用开发可以做什么
- Modern JavaScript syntax with ES6 via babel.
- Module bundler via webpack.
- Components-based architecture via Vue.js.
- State management via Vuex.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文vue-wordpress-pwa
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
Live version: https://www.fullstackweekly.com/

Description
This is the code for the FullStackWeekly website. You can use it as a starter pack for your WordPress site as well.
Since WordPress can expose a REST API, this project uses Vue.js, Vue-router, Vuex, Vue-resource & Progressive Web App techniques to create an offline-first web client.
You can also fork the project and host it on Azure App Services with continuous integration using the deploy.cmd file (included)
Live version: https://www.fullstackweekly.com/
Getting Started
Prerequisites
Make sure that Node v11 is installed.
Features
- Modern JavaScript syntax with ES6 via babel.
- Module bundler via webpack.
- Components-based architecture via Vue.js.
- State management via Vuex.
- Cache busting via file-loader
- Progressive Web App enabled with service workers
- Offline capable with service workers, app cache
- CSS with Sass
Instructions
First, install the WordPress plugins to enhance its REST API
- Better REST API Featured Images
- REST API Enabler
- WP REST API - filter fields
- WP REST API - Pure Taxonomies
Then, clone the repo or create a fork
$ git clone https://github.com/bstavroulakis/vue-wordpress-pwa.git
Then, edit the config:
src/app.config.js
Then, edit the theme, routes and assets:
src/theme/
src/components/routerTypes.js
src/components/router.js
src/assets
Finally, to run the project for development with hot reload:
$ npm install
$ npm run dev
Or, build the project for production:
$ npm run build
Deployment
Setup a new site on Azure App Services https://[fullstackweekly].azurewebsites.net and as the path select your forked Github project.
Your site should be running on the path you created (https://[fullstackweekly].azurewebsites.net)!
It should work offline as well and with every commit it will deploy the changes to Azure.
Once the user refreshes the site he will receive the new cached version immediately.
License
MIT
探索相关项目
加载中…