Sencha ext js 6, senchaext
Sencha Ext JS is the world's most advanced and powerful JavaScript Application Development framework supporting multiple platforms and devices. First, let's take a look at the brief history of Ext JS development.
1 Ext JS Development History 2 Development Preparation
1. First download the Ext js sdk and download the official version of ExtJS 6.0 SDK GPLHttps://www.sencha.com/legal/gpl/. If you need commercial applications, download the commercial version. Decompress the package to drive D.
2. Download Sencha Tool. If JRE7 + is not installed in your system, download Sencha Tool with JRE version and install it successfully.
3. Create a project
1. Open the command line as an administrator and useCd/d :\Ext-6.0.0 into SDK directory
2. UseSencha-sdk./ext-6.0.0 generate app-classic cmpwebui./CMPWebUI command create based onThe ext-6.0.0 versionNameCmpwebui app. The project path is./CMPWebUI.
Generate the CMPWebUI project file in Directory D: \ ext-6.0.0 with the following structure:
3. Go to the project file and useSencha app watchProject preview. The default port number is 1841. if it already exists, it will increase progressively. Here, the port number is 1842.
Enter http: // localhost: 1842/in the browser to preview the file. Unlike what I expected at the beginning, the file contains an official Example. You can click view the Example to view the file.
Where is the self-created Project? You can enter http: // localhost: 1842/cmpwebui/to view
4. Release the project and use sencha app build for compilation.
After compilation, you can see the published project under the build file under the ext-6.0.0.
5. When the IIS project is released, you must configure IIS to parse JSON. Otherwise, the Website Cannot be previewed,
It is actually very easy to run, as long as the *. json file can be parsed by the Web server. Here IIS7 is used as an example.
1) install IIS7 ASP support
Control Panel --> Programs and functions --> enable and Disable Windows functions --> roles --> Add role services --> Application Development --> select ASP
2) Add the MIME type to the default website
Add --> the file extension is json, And the MIME type is text/json (or application/x-javascript)
3) install script ing for the default website
Handler ing --> Add script ing. The Request Path is *. json. the executable file is % windir % \ system32 \ inetsrv \ asp. dll and the name is json.
4)upload index.html in the document
5) create a SenchaTouch application under the default website, which is called a virtual directory under iis6.
6) preview with Chome (not supported by IE)
After the configuration is complete, you can see that the folder has an additional web. config
Refresh the page: