creating blank cordova app

440 views Asked by At

I have created a blank cordova app, but the problem is that the project is empty, it only has dependencies. Can any one help me?

look at the image here, please

2

There are 2 answers

1
geoM On

Not sure what Visual Studio Code did here, but you can always create and adapt a Hello World app by running cordova create hello com.example.hello HelloWorld. Make sure you have npm installed, then run

npm install -g cordova
cd <your new project-folder>
cordova create hello com.example.hello HelloWorld
0
pavelety On

Try to use Visual Studio as code editor, not builder.

Building project is only need for compile apk for device (android).

cordova build android

No need to build simple project with index.html and JS files while developing. Just run:

cordova platform add browser
cordova run browser

PS: try Ionic-framework it's based on cordova.