Skip to content

Yarl-IT-Hub/html5-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

html5-snake

HTML5 App Demo for Mobiles, starting from Android

Required Software

  1. JDK 1.7

  2. Android SDK

  3. Node JS

  4. Apache Cordova

The Setup

  1. Install JDK

    1.1 Download the JDK from Oracle site

    1.2 Run the installer

    1.3 Setup the environment variables JAVA_HOME JDK_HOME JRE_HOME

  2. Install Android SDK

    2.1 Download the Android SDK from android developer site

    2.2 Unzip the downloaded file

    2.3 Setup the environment variables ANDROID_PLATFORM_TOOLS_PATH ANDROID_TOOLS ANDROID_HOME

  3. Install Node JS and Apache Cordova

    In Ubuntu

    3.1 sudo apt-get install nodejs

    3.2 sudo apt-get install npm

    3.3 sudo npm install -g cordova

    3.4 Cordova Platform Setup

  4. Creating the project

    4.1 Create a project directory

     run `cordova create html5-snake-app org.yit.demo SnakeApp -d`
    

    4.2 Add Android platform support

     run `cd html5-snake-android`
    
     run `cordova platform add android -d`
    
     run `cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git`
    

How to build

Go to project directory

  1. Build the app

     run `cordova build -d`
    
  2. Lauch the app in the emulator

     run `cordova emulate android -d`
    

How to deploy

Copy the apk file from platforms/android/bin

About

HTML5 Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors