Classpip is a Mobile application for School Gamification. The application is builded around a stack of services and websites to provide a full experience in order to gamificate any educational environment.
This repository contains the mobile application for the Classpip architecture. With this application you could connect to the services oriented architecture.
Make sure you have NodeJS installed. Download the installer here or use your favorite package manager. It's best to get the 5x version of node along with the 3x version of npm. This offers the best in stability and speed for building.
npm install -g [email protected]
npm install -g [email protected]
For building iOS projects you have to install Xcode and Ruby for installing the following gem:
gem install xcodeproj
Install ios-deploy to deploy iOS applications to devices.
sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
All the project dependencies are manage through npmjs. To install this dependencies you should run:
npm install
For development purposes, you have to restore the cordova state of the application. All the platforms and plugins files are not uploaded into the repo but you could download with the following command:
mkdir www
cordova prepare
To see all the HTML5 development you could run the following command to see with livereload all the changes on the browser.
ionic serve
If you want to emulate your changes on the platform emulators: android (Android Emulator or Genymotion), iOS emulator
ionic emulate [ios|android]
If you want to test the application on real devices or the browser emulator you could connect a real device in your computer and run:
ionic run [ios|android]
Finally if you want to build the application for generating the final artifacts for the market deployment you should run the following command for every platform:
ionic build [ios|android] --release
There are some unit tests configured in the application to validate the integrity of the code. This tests are running using karma over phantomJS. To tun the unit tests configured in the application you should run:
npm test
For building the application you should execute two scripts located into the /build folder. These scripts use some ENV_VARS that points to diferent certificates and keystores located in your machine.
cd build
sh build_{ios|android}.sh
Classpip is released under the Apache2 License.