Android app that is listening and reacts to a node.js service connected to google calendar api that gets the next three events from the current date of the account fcaravana.meetings@gmail.com.
This app also has three shortcuts to launch three android apps.
$ cd server
$ npm install
$ cd app/assets/js/
$ bower install
$ cd app
$ npm install
$ gulp
$ cd server
$ ln -s ../app/ app
The 'server' folder has a node.js http server running on port 8080, with the following available routes:
$ npm install nodemon -g
$ cd server
$ nodemon server.js
-
http://server_name:port/app
-
http://server_name:port/events
-
http://server_name:port/code?code={CODE}
-
/assets/css has all the css styles
-
/assets/images has all the images
-
/assets/js has all the javascript
-
/assets/scss has all SASS files used to build de /assets/css/style.css file
-
index.html it's where all starts
-
/test for tests execute:
$ cd app
$ npm install karma-cli -g
$ karma start
-
Edit: /assets/js/app.js
-
Change: config.eventsService = 'http://server_name:port/events';
-
Currently, for the *.apk, the service is running in openshift http://gcalendar-caravana.rhcloud.com/events
- Got to http://developer.android.com/intl/pt-br/sdk/installing/index.html and follow instructions.
$ npm install cordova -g
$ cordova create project_name com.domain.project_name project_name
$ cd project_name
$ cordova platform add android
$ cordova plugin add com.lampa.startapp
$ cordova plugin add cordova-plugin-network-information
$ cd ../
$ cp cordova/config.xml project_name/config.xml
$ rm -rf cordova
$ mv project_name cordova
$ cd cordova
$ rm -rf www
$ ln -s ../app/ www
$ cordova build android