Start up with Laravel 4 – Installation and Configuration Mac/Linux

Lately i thought of diving into Laravel which in recent days has gained quite a popularity among the developers community. I will cover the basic installation steps of getting Laravel setup to work efficiently on the machine along with the Homestead environment. The steps as per the Laravel website seems to be very easy but developer faces a lot of issues while getting it to work properly. So lets begin.

Introduction

Laravel is a PHP based framework used for developing great applications over web. It consists of various features similar to other frameworks but are very well organized compared to other competitors in the market. Continue reading “Start up with Laravel 4 – Installation and Configuration Mac/Linux”

Sencha Touch 2 – Create a new application using terminal

This post allows you to understand that how to create your first application for the sencha touch 2.

Here are the steps that allows you to create a new application using the terminal/command line:

Pr-requisites:

  • Sencha touch 2 downloaded.
  • Sencha Cmd installed.
  • MAMP already installed on the system.

Steps:

  1. Navigate to the directory where you have extracted the contents of the package downloaded from the website. In case you are in a wrong directory and you try to create a new application, the script will be at halt and will show an error.
  2. Once navigated, type the following
    sencha -sdk /path/to/sencha-touch-sdk generate app MyApp /path/to/www/myapp
  3. On the completion of the script, the location specified in the above command will have the content as follows:

.sencha/                # Sencha-specific files (for example configuration)
    app/                # Application-specific content
        sencha.cfg      # Configuration file for Sencha Cmd
        plugin.xml      # Plugin for Sencha Cmd
    workspace/          # Workspace-specific content (see below)
        sencha.cfg      # Configuration file for Sencha Cmd
        plugin.xml      # Plugin for Sencha Cmd</code></strong></pre>
touch/ # A copy of the Sencha Touch SDK
 cmd/ # Sencha Touch-specific content for Sencha Cmd
 sencha.cfg # Configuration file for Sencha Cmd
 plugin.xml # Plugin for Sencha Cmd
 src/ # The Sench Touch source
 sencha-touch-*.js # Pre-compiled and bootstrap files
 ...

app # Your application's source code in MVC structure
 controller
 model
 profile
 store
 view
 Main.js # The main view of the application

resources
 css
 app.css # The main stylesheet, compiled from app.scss

sass
 app.scss # The Sass file which compiles to app.css above,
 # includes Sencha Touch theme by default

icons # Application icons for all mobile devices
 # When replacing these default images with your own,
 # make sure the file name and the dimension stays exactly the same
 ...
 loading # Application start-up screens for iOS devices
 # Similarly to icons, make sure the file names and
 # dimension stays the same
 ...
 images # Put other images used by your application here

index.html
 app.js # Contains application's initialization logics
 app.json # Configuration for deployment
 packager.json # Configuration for native packaging

Getting started with Sencha Touch 2 on your MAC

As the fresh developers to the sencha touch development, one of the challenges is to configure sencha touch 2 on the machine. This is a small post the defines the steps to install and configure the Sencha Touch 2 on the system.

Please Note: This installation steps are specifically for the Mac Machines.

Pr-requisites: You will require a local server to run the applications built on the Sencha Touch Platform such as MAMP.

1. Download the Sencha touch package from the website. Click Here to download the package.

2. Unzip the package and extract the contents to a destination.

3. Download the Sencha Command Tool from the sencha touch website. Click here to download the installation setup.

4. Run the installation file that is downloaded from the website.

5. To check whether the Sencha Command is installed properly or not, Open Terminal and type “sencha” to it. The output similar to the one specified in the image below will be displayed to you in case the installation is done successfully.

Sencha Cmd

Sencha Command helps you to compile, run and create the applications using the command line.

The installation and configuration of the sencha on the machine is done successfully.

You can use any type of editor to manage the files for the sencha touch application. The recommended are Sencha Touch 2 Architect, Aptana Studio, Xcode, Dashcode.

To view how to create an application using the sencha cmd please look into the next post of the series.