Physics project. This one uses Apache Cordova
- Clone project
git clone https://github.com/itmop3210/physics-simulator.git
cd physics-simulator
- Install Cordova
npm install -g cordova
cordova run browser
It seems there is no hot-reload when you change some code. To apply changes, you need to press CTRL+C, then run command above one more time.
-
Install Android Studio, it will install required SDKs automatically
-
Make sure JAVA_HOME environment variable points to your JDK installation
-
Make sure ANDROID_HOME environment variable points to your SDK installation
-
Enable developer mode and USB debugging on your Android phone
-
Connect your Android phone via USB
cordova build android
cordova run android
-
Open
/www
directory -
Create .html file for your demonstration. You can use
geom_optics.html
as an implementation example. -
Add a link to your demonstration in
index.html
file.