Skip to content

IbuildingsItaly/agenda

Repository files navigation

Agenda

A Sencha Touch application example generated with Sencha Cmd

Usage

First of all, clone the repo:

$ git clone https://github.com/IbuildingsItaly/Agenda

Then make a copy of SenchaTouch#2.3.1 created with Sencha Cmd and move it in the application folder (path/to/Agenda), under the name touch. If you don't have any copy, generate it:

$ cd path/to/sencha_touch_2.3.1/
$ sencha generate app base_sdk /tmp/base_sdk
$ cp -a /tmp/base_sdk/touch/ path/to/Agenda/touch

Now, launch the webserver with Sencha Cmd and try out the demo:

$ cd path/to/Agenda
$ sencha web start

Packaging

Follows the packaging documentation for different platforms:

Android

First step, initialize cordova with Sencha Command:

$ cd path/to/Agenda
$ sencha cordova init your.app.id

your.app.id could be a random id such as my.webappsite.Agenda. A new folder named cordova is created under the project root. Let's add the android platform:

$ cd /path/to/Agenda/cordova
$ cordova platform add android

Now, Agenda uses push notifications and the camera of the device, so you need to install Push and Camera plugins:

$ cd path/to/Agenda/cordova
$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
$ cordova plugin add https://github.com/phonegap-build/PushPlugin.git

At this point you're ready to make the android native build!

Build

It's time to make the Agenda build!

Basic

This build is the basic one, a build where every assets (javascript, css and html files) are compressed and concatenated in just one file for each language (one for JS, one for CSS and one for HTML). To build your app, launch the following command from the root of Agenda:

$ cd /path/to/Agenda
$ sencha app build

A new folder called production is created under build: here you can find the production build of Agenda, ready to use.

Native

For native builds, the Android SDK is needed. So, download and install it firstly.

Now, if you want to make a build for mobile devices (phone, tablet and so on), then launch the following command from the root of Agenda:

$ cd /path/to/Agenda
$ sencha app build native

This command makes the Sencha build and then tells cordova to make the native build with its configurations. Now, you can find the apk files under the following path: path/to/Agenda/cordova/platforms/android/ant-build/

android is a platform example but you get every kind of previously added platforms under platforms folder, like iOS, wp, blackberry, etc, with their ant-build sub-folder.

About

A Sencha Touch example application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published