Skip to content

Developer installation instructions

Alexander Kaplan edited this page Jul 2, 2017 · 40 revisions

Requirements

  • 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

Want to do it yourself?

Client

Install

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)

Run

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)

Configure

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)

Server

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.

Want to try ours?

Client

Visit https://play.google.com/store/apps/details?id=smart.city.accessibility

Server

Visit https://smartcity-accessibility.herokuapp.com