phonegap-simple-vuejs
v1.0.7
Published
A simple template to use vue with phonegap
Downloads
9
Maintainers
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 name
Once 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:
- Vue Router. See the documentation here.
- Vue Resource. See the documentation here.
- Vuex. See the documentation here.
- Vue i18n. See the documentation here.
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
Credits
This is a template base in: