Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Commit b8e7a86

Browse files
committed
Added instructions for ch14 and running without a web seerver
1 parent 4ace22b commit b8e7a86

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

README.md

+22-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ extjs-in-action-examples
44
Ext JS in Action SE Examples from http://manning.com/garcia3/
55

66

7-
**Installation instructions**
7+
Installation instructions
8+
--
89

9-
1) Clone the repo
10+
1. Clone the repo
1011
```
1112
git clone https://github.com/ModusCreateOrg/extjs-in-action-examples.git ./your_path_of_choice
1213
```
1314

14-
2) Create a virtual site (optional, but advised) based on what ever web server you use. An example apache vhost (assumes http://ext4ia):
15+
2. Create a virtual site (optional, but advised) based on what ever web server you use. An example apache vhost (assumes http://ext4ia):
1516
```
1617
<VirtualHost *:80>
1718
ServerAdmin liquid@localhost
@@ -28,5 +29,22 @@ git clone https://github.com/ModusCreateOrg/extjs-in-action-examples.git ./your_
2829
</VirtualHost>
2930
```
3031

31-
3) Visit your virtual host via http://myvirtualhost/examples/ch01 (or http://extjsinaction.com/v4/examples/);
32+
3. Visit your virtual host via http://myvirtualhost/examples/ch01 (or http://extjsinaction.com/v4/examples/);
3233

34+
Chapter 14 instructions
35+
--
36+
1. Make sure you have Sencha Cmd 4+ installed (works with Cmd 5 as well)
37+
2. Open terminal
38+
3. Navigate to Ch 14 `/path/to/ch14`
39+
4. Execute `sencha app build`. This command will build CSS files and work out the dependencies.
40+
5. Point your browser to ch14
41+
42+
Running examples without a web server
43+
--
44+
We need a web server set up for two reasons. Some examples need external services/data, so we provide with php scripts for your convenience. Those require a PHP-enabeled server.
45+
46+
Also, XHR (AJAX) is required for Ext.Loader to fetch dependencies. Due to security considerations, XHR only works in HTTP(s), thus requiring a web server.
47+
48+
Examples that do not require external data (PHP) can also be executed in Google Chrome with security turned off. [This post](http://stackoverflow.com/a/6083677/857756) outlines how to run it on Mac OS, Linux, and Windows.
49+
50+
Once you have Chrome running in this mode, just open html files as you would normally do from your Finder, Windows Explorer, Terminal, or elsewhere.

0 commit comments

Comments
 (0)