Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omargm2294/phonegap_simple_vuejs
A simple template to use vue with phonegap
https://github.com/omargm2294/phonegap_simple_vuejs
cordova i18n javascript mobile phonegap resource router template vue vue-resource vue-router vuei18n vuejs vuejs2 vueresource vuex
Last synced: about 2 hours ago
JSON representation
A simple template to use vue with phonegap
- Host: GitHub
- URL: https://github.com/omargm2294/phonegap_simple_vuejs
- Owner: OmarGM2294
- Created: 2017-02-23T19:27:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-13T15:38:26.000Z (over 3 years ago)
- Last Synced: 2024-11-15T07:59:30.093Z (4 days ago)
- Topics: cordova, i18n, javascript, mobile, phonegap, resource, router, template, vue, vue-resource, vue-router, vuei18n, vuejs, vuejs2, vueresource, vuex
- Language: JavaScript
- Size: 3.41 MB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhoneGap Simple VueJS Template
Phonegap template to create apps with VueJS 2.
## Usage
To create a phonegap project, do the following:
***Phonegap CLI:***
$ phonegap create myapp --template https://github.com/OmarGM2294/phonegap_simple_vuejs.git
$ cd myapp
$ sudo npm install
$ sudo npm run dev
**NOTE:** Change "myapp" for your application's name
***Cordova CLI:***$ cordova create my app --template https://github.com/OmarGM2294/phonegap_simple_vuejs.git
$ cd myapp
$ sudo npm install
$ sudo npm run dev
**NOTE:** Change "myapp" for your application's nameOnce you do this, the server will be runngin in http://localhost:3000.
You can use the npm package name instead of the github url.
***NPM Package name:*** phonegap-simple-vuejs
## Components in Vue
There are 4 components pre-installed in the template:
1. Vue Router. See the documentation [here](http://router.vuejs.org/en/).
2. Vue Resource. See the documentation [here](https://github.com/pagekit/vue-resource).
3. Vuex. See the documentation [here](https://vuex.vuejs.org/en/).
4. Vue i18n. See the documentation [here](http://kazupon.github.io/vue-i18n/).## Project structure
The projects manage all content in two important folders, assets and components, and inside each one another structure recommended.
An important thing to know, an organized project reflects an organized mind, so do the best to keep this structure if you want.
## Troubleshooting* If the auto reload is not showing changes at all, please stop the server and run it again.
* If any of the commands shows an error, run it with sudo.
* If you get the error "/usr/bin/env: node: No such file or directory", try running this:
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
## CreditsThis is a template base in:
[LeMaur - Phonegap Vueify](https://github.com/leMaur/phonegap-vueify)