Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (27 loc) · 1.25 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.25 KB

physics-simulator

Physics project. This one uses Apache Cordova

Getting started

  1. Clone project

git clone https://github.com/itmop3210/physics-simulator.git

cd physics-simulator

  1. Install Cordova

npm install -g cordova

Opening project in browser

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.

Opening on an Android device

Full guide here

TL DR:

  • 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

Build app:

cordova build android

Run app:

cordova run android

Starting to develop

  1. Open /www directory

  2. Create .html file for your demonstration. You can use geom_optics.html as an implementation example.

  3. Add a link to your demonstration in index.html file.