简体   繁体   English

如何使用sencha cmd创建一个Extjs应用

[英]how to create an Extjs app using sencha cmd

I am new to sencha. 我是sencha的新手。 I need to work on ExtJS and would like to create an app using sencha cmd. 我需要处理ExtJS,并想使用sencha cmd创建一个应用程序。 I have tried many things but not getting a clear info to create an app with sencha cmd. 我已经尝试了很多事情,但是没有获得明确的信息来使用sencha cmd创建应用程序。

Please help me by treating as a beginner to build an application. 请以初学者身份构建应用程序来帮助我。

Also after the installation of sencha cmd how can we start this to run sencha commands? 另外,在安装sencha cmd之后,我们如何启动它来运行sencha命令? When I try any command in normal terminal it shows me ' sencha is not recognized ' in windows PC. 当我在普通终端中尝试任何命令时,它显示我在Windows PC中sencha is not recognizedsencha is not recognized ”。 Also I've given the sencha cmd path in the environment variable PATH. 另外,我在环境变量PATH中给出了sencha cmd路径。

After you fix the PATH problem and when sencha works, run 修复PATH问题后,当sencha运行时,请运行

  sencha generate app YourNameSpace /where/you/want/it

Run this command in ext directory - where you unzipped Ext. 在ext目录中运行此命令-在其中解压缩Ext。

For more details see http://extjs.eu/videos 有关更多详细信息,请参见http://extjs.eu/videos

Along with Path variable try to create another variable 与Path变量一起尝试创建另一个变量

SENCHA_CMD_5_0_0 and set the location of your sencha cmd SENCHA_CMD_5_0_0并设置您的sencha cmd的位置

after doing this sencha cmd path will present in both path and sencha_cmd_5_0_0 variables 完成此操作后,sencha cmd路径将同时出现在path和sencha_cmd_5_0_0变量中

Sencha cmd is a Java Application, be sure you have Java SDK or JRE installed, also add the path to Sencha Cmd executable to your PATH environment variable, (My PC properties/Advanced/Environment VAriables), read the install documentation carefully. Sencha cmd是一个Java应用程序,请确保已安装Java SDK或JRE,还将Sencha Cmd可执行文件的路径添加到PATH环境变量(“我的电脑属性/高级/环境VAriables”)中,请仔细阅读安装文档。

Download Sencha SDK GPL or try the commercial version. 下载Sencha SDK GPL或尝试商业版本。

You could start generating a basic app or using a predefined template: 您可以开始生成基本应用程序或使用预定义的模板:

$ sencha -sd path/to/ext-6.x generate app APP_NAME path/to/project

A good starting point for more advanced applications is using the package templates, ie the Admin Dashboard: 对于更高级的应用程序,一个很好的起点是使用软件包模板,即“管理仪表板”:

$ sencha -sd /path/to/ext-6x generate app -s /path/to/ext6.x/templates/admin-dashboard/ APP_NAME /path/to/project

You should run $ sencha package upgrade if required. 如果需要,您应该运行$ sencha package upgrade

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM