-
Notifications
You must be signed in to change notification settings - Fork 4
Developer installation instructions
- Clone the project (
git clone https://github.com/TechnionYP5777/SmartCity-Accessibility.git
) - Jdk 8 (
apt-get install openjdk-8-jdk-headless
) - Maven command line (
apt-get install maven
) - Node.JS (Linux, Windows)
- Git (
apt-get install git
) - Android SDK (for creating apk, ANDROID_HOME environment variable should be correctly set) more details here
Install cordova and ionic using sudo npm install -g cordova ionic@2.2.3
.
Then, from the client side (cd client-side
) directory run npm install
To enable android, run sudo cordova platform add android
(might only work after using ionic serve
for the first time, see following instructions)
On any environment you can run the client using the ionic serve -p 80
from the client directory.
If the client doesn't open in browser it can be found at : http://localhost:8100
It'll be better to avoid Chrome(it'll work but might have minor problems)
This will run the client so you can connect to it from a web browser (recommended to connect from a mobile device)
To run the client on Android run ionic build android
and then ionic run android
(requires an android device with ADB on connected to the PC, and need to enable debug mode on your device)
To edit the server the client is connecting to, edit constant serverAddress
in file client-side\src\pages\constants.ts
. (default in git is localhost:8080)
From the server directory run :
mvn clean install exec:java -Dexec.mainClass="smartcity.accessibility.services.Application"
You can add the argument -Dserver.port=8080
to specify a port, default is 8080.
Visit https://play.google.com/store/apps/details?id=smart.city.accessibility