Skip to content

Cordova hello world project with simple javascript and css, and a cordova camera plugin - Using Webpack, babel, es6

Notifications You must be signed in to change notification settings

gopal-abbineni/cordova-hello-world

Repository files navigation

Dependencies Updates Status Code Climate

Cordova Hello World

Simple cordova project using cordova plugins, ios and android platforms.

What does it do ?

It does the basical job from base branch which is the basis branch: just a cordova hello world project with simple javascript and css, and a cordova camera plugin. This branch is merged with the followings:

Requirements

  • You'll need Node installed (or brew install node with homebrew) and NPM.
  • Wanna develop for android platforms? Please read this installation documentation
  • Wanna develop for ios platforms? Please read this installation documentation
  • Please be sure Cordova is installed before (npm install -g cordova)
  • Be sure that Webpack is globally installed on your system (npm install -g webpack)

Installation

git clone [email protected]:proustibat/cordova-hello-world.git
cd cordova-hello-world
npm install

Note that npm install simply runs cordova prepare command

Usage

Running App

  • On your browser: run npm start

Note that the command above runs npm run compile:js && cordova serve -l

Then visit http://localhost:8000/

  • On android simulator:
npm run compile:js
cordova emulate android
  • On android device (with a usb connected device)
npm run compile:js
cordova run android --device
  • On ios simulator
npm run compile:js
cordova emulate ios
  • On ios device (with a usb connected device)
npm run compile:js
cordova run ios --device

Building

npm run compile:js
npm run build

Note that npm run build command runs cordova build android && cordova build ios

Help

  • Launch Android SDK Manager: run android sdk
  • Launch Android Virtual Device Manager: run android avd
  • Listing available android virtual devices: run cordova run android --list
  • Listing available iOS virtual devices: run cordova run ios --list
  • While running an app on simulators or devices, you can visit chrome://inspect/#devices to debug your android device> For ios device, open safari, find your device in development tab.

About

Cordova hello world project with simple javascript and css, and a cordova camera plugin - Using Webpack, babel, es6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published