Front end for Stockpile, an app that manages stuff for organizations.
Built with Ionic.
See Stockpile API for the Restful API consumed by this app.
- Clone this repo
- Run
npm install
from the project root
Note: If your build is slow, update npm
to 3.x: npm install -g npm
.
- Run
ionic serve
to preview the app in your browser - You can also run
ionic serve --lab
to preview different platforms side-by-side
Note: Some native functionality like scanning won't be available in the browser. You have to run the app on an emulator or device for the full experience.
Running apps on a device or emulator requires you to build the app locally. To do this, you have to set up the Android SDK and/or Apple's Xcode. For detailed instructions on how to do this, follow this guide for Mac or this one for Windows.
- Add platforms you want to run with
ionic cordova platform add ios
orionic cordova platform add android
- Run
ionic cordova prepare
to install the plugins for each platforms - For iOS only, run
npm install ios-sim
. This is the only way to get the emulator to work from the command line. - Run
ionic cordova emulate ios
orionic cordova emulate android
to emulate - Run
ionic cordova run ios
orionic cordova run android
to run on a real device connected to your computer
App tested with Jasmine and Karma on Chrome.
To run the tests: npm test
.