Skip to content

Running Local Server

sam1rm edited this page Sep 12, 2015 · 2 revisions

Run emulator (slower refresh than chrome mobile tools)

  1. cd to uguru/mobile-app/
  2. ionic emulate ios -clr
  3. the ios simulator should just popup

Run Browser

  1. cd to uguru/mobile-app/
  2. ionic emulate ios -clr
  3. (optional) the simulator should popup, feel free to quit it
  4. open http://192.168.15.239:8100

Run Device

  1. cd to uguru/mobile-app/
  2. ionic run ios -clr
  3. Make sure your phone is plugged in & you have a developers license & provisioning profile

Higher Level Directory Info

  1. All static HTML files mobile-app/www/remote/templates/
  2. All js controllers mobile-app/www/remote/js/controllers/ * NOTE: some might be in university/*.ctrl.js (if there is more than one, refer to the university one)
  3. All view-specific css Files mobile-app/www/remote/css/sass/views/*.css
  4. All general css Files mobile-app/www/remote/css/sass/*css

How to create a new scss file & activate it

  1. Create a sass file in mobile-app/www/remote/css/sass/
    • if it's a view, then put it inside views
  2. Open mobile-app/www/remote/local.index.html && import it like the rest of the css files

Example --> access.html

  • html mobile-app/www/remote/templates/access.html
  • js mobile-app/www/remote/js/access/access.ctrl.js
  • sass mobile-app/www/remote/css/sass/views/access.scss
Clone this wiki locally