All Projects → superpikar → onsenui-vue-router-pwa

superpikar / onsenui-vue-router-pwa

Licence: MIT License
Onsen UI + Vue + Vue Router + Axios PWA Starter Project

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Vue
7211 projects
CSS
56736 projects

Projects that are alternatives of or similar to onsenui-vue-router-pwa

vue-element-admin
Vuejs实例-Vuejs2.0全家桶结合ELementUI制作后台管理系统http://www.cnblogs.com/weiqinl/p/6873761.html
Stars: ✭ 97 (+169.44%)
Mutual labels:  axios, vue-router
Code-VueWapDemo
“Vue教程--Wap端项目搭建从0到1”的源码
Stars: ✭ 19 (-47.22%)
Mutual labels:  axios, vue-router
vue-iview-admin-template
Vue 2.0 admin template based on View UI
Stars: ✭ 43 (+19.44%)
Mutual labels:  axios, vue-router
jooger.me
👍 My personal website,powered by @nuxt
Stars: ✭ 39 (+8.33%)
Mutual labels:  axios, vue-router
cloudMusic
(移动端)Vue2.0+Nodejs网易云音乐,网易云音乐api强力驱动,高音质破解(持续更新中)
Stars: ✭ 14 (-61.11%)
Mutual labels:  axios, vue-router
vue-template
🎉 一个集成了 webpack + vue-loader + vuex + axios 的自定义 vue-cli 模板,其中包含 webpack 热更新,linting,测试以及 css 处理器等内容
Stars: ✭ 25 (-30.56%)
Mutual labels:  axios, vue-router
music
🎵vue 像素级还原mac客户端网易云音乐
Stars: ✭ 34 (-5.56%)
Mutual labels:  axios, vue-router
vue-music
using Vue to Develop Mobile Project to Simulate “Baidu Music”(高仿百度音乐)
Stars: ✭ 27 (-25%)
Mutual labels:  axios, vue-router
Eldin-Space-Vue
Personal Web Portfolio
Stars: ✭ 54 (+50%)
Mutual labels:  axios, vue-router
vue-douban
高仿豆瓣app
Stars: ✭ 22 (-38.89%)
Mutual labels:  axios, vue-router
bilibili-vue
vue实战bilibili仿站:vue + vue router + vuex + axios
Stars: ✭ 78 (+116.67%)
Mutual labels:  axios, vue-router
vue-ssr-starter
Starter kit for projects with Webpack 4, Vue 2 and SSR
Stars: ✭ 53 (+47.22%)
Mutual labels:  axios, vue-router
element-ui-demo
A element-ui admin base on vue2
Stars: ✭ 18 (-50%)
Mutual labels:  axios, vue-router
admin-antd-vue
Vue3.x + Ant Design Admin template (vite/webpack)
Stars: ✭ 111 (+208.33%)
Mutual labels:  axios, vue-router
vite-vue3-starter
⭐ A Vite 2.x + Vue 3.x + TypeScript template starter
Stars: ✭ 384 (+966.67%)
Mutual labels:  axios, vue-router
vue-element-admin-ts
vue-element-admin 的 typescript 版本
Stars: ✭ 101 (+180.56%)
Mutual labels:  axios, vue-router
Vue-NetEaseCloudMusic
vue,vuex ,vue-router,music
Stars: ✭ 95 (+163.89%)
Mutual labels:  axios, vue-router
vue-iview-admin
admin template powered by vue & iview
Stars: ✭ 14 (-61.11%)
Mutual labels:  axios, vue-router
login push
vue+koa2+jwt实现单点登录 + todolist增删改查
Stars: ✭ 20 (-44.44%)
Mutual labels:  axios, vue-router
vuetify-admin
一个vuetify后台基础模板
Stars: ✭ 46 (+27.78%)
Mutual labels:  axios, vue-router

Onsen UI + Vue + Vue Router + Axios PWA Starter Project

Information

Please read carefully before use this project starter

  1. This project is based on onsenui-vue-pwa webpack template
  2. Since I dont need PWA at the moment, so I remove all the script related to PWA in index.html. If you want to use PWA, just rename index-serviceworker.html to index.html
  3. Since I need to access the page via URL in the browser, so instead of using Onsen ui <v-ons-navigator> system, I use vue-router to meet my requirement.
  4. For some pages and components I split the html and scss in *.vue into separate file for my convenience, following Ionic2 project structure. However if you prefer the vue way, you can use common vue project structure.
  5. Use eslint-airbnb, thus every line of code should follow airbnb javascript style guide
  6. Additional rules was added to eslintrc.js as follows :
    • 'no-console': 0, // allow console.log
    • 'no-param-reassign': 0 // disable warning when assignment to property of function parameter

List of features implemented in this project

  1. Side menu navigation
  2. Application state management using Vuex
  3. Page and component creation
  4. RESTAPI consumption using axios
  5. Custom routing on onsenui-vue using vue-router

Dependencies


Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

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

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.


Reference :

  • Separate HTML and SCSS file. link
  • Enable scss working in vue link
  • Vue routing using hash setup. link
  • Getting started with vuex. link
  • Delete service worker. link

Screenshots :

Android

iPhone

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].