官术网_书友最值得收藏!

Preparing the development environment

The application that we are going to develop has a very simple architecture. We are going to use Ext JS 5 on the frontend, which is going to communicate with a server-side module using Ajax/JSON, which will then communicate with a database.

The following diagram encapsulates the preceding paragraph:

Preparing the development environment

The server-side module will be developed using PHP. You need not worry if you don't know PHP. We are going to use very basic code (no frameworks), and we are going to focus on the programming logic that needs to be implemented on the server side. This way, you can apply the same logic using any other programming language, such as Java, ASP.NET, Ruby, Python, or any other (that supports the exchange of data in JSON or XML format as this is the communication format used by Ext JS). For the database, we will use MySQL. We will also use the Sakila sample schema (http://dev.mysql.com/doc/sakila/en/), a free MySQL sample database, which is perfect to demonstrate how to work with Create, Read, Update, and Delete/Destroy (CRUD) operations on a database table and also use more complex operations, such as views and stored procedures (we will learn how to handle all this information with Ext JS).

Note

If you are a Java developer, you can find some sample code on how to integrate Java with Ext JS at http://goo.gl/rv76E2 and http://goo.gl/nNIRuQ.

Also, we will need to have Sencha Cmd installed (we have already installed Sencha Cmd during Chapter 1, Sencha Ext JS Overview). However, we still need to execute some extra steps to have it configured. Once configured, we will be able to create the application structure, customize the theme, and also make the production build. Sencha Cmd requires having Ruby compatible with versions 1.8 or 1.9 (version 2.x will not work). We also need to have Apache Ant installed (and because Apache Ant is built with Java, we also need to have Java installed and configured in our computer).

After we have finished implementing the application, we will customize the theme, and because of this, we will need to install Ruby (1.8 or 1.9) and the Sass and Compass gems.

To deploy the application, we need a web server. If you do not have any web server installed on your computer yet, do not worry. In this book, we will use Xampp as the default web server.

We will also need a browser to run our application in. The recommended ones are Firefox (with Firebug) or Google Chrome.

If you do not have any of the software or technologies mentioned previously installed on your computer, don't worry. To summarize all the tools and software we need to have installed prior to starting the fun, here is a list with the links where you can download them and find installation instructions (all items are available for Windows, Linux, and Mac OS):

Of course, we also need Ext JS SDK and Sencha Cmd, which we downloaded and installed in Chapter 1, Sencha Ext JS Overview.

Note

To help you configure the required development environment in order to be able to create the application from this book, here is a video that demonstrates it step by step (step by step done for Windows environment—the Linux and Mac OS setup is very similar): http://youtu.be/B43bEnFBRRc.

主站蜘蛛池模板: 高雄县| 项城市| 庆阳市| 怀宁县| 新安县| 赤壁市| 手游| 长岛县| 亚东县| 永城市| 大荔县| 岳池县| 苗栗市| 宁武县| 福海县| 阜新| 宁城县| 缙云县| 北票市| 大名县| 旬邑县| 罗田县| 武夷山市| 明溪县| 肃南| 新泰市| 肃宁县| 鱼台县| 土默特右旗| 佛学| 于田县| 枣阳市| 鄂托克前旗| 花莲市| 蓬安县| 临朐县| 潼关县| 泰兴市| 咸宁市| 新乐市| 东乡县|