-
Use the sencha cmd tool to generate the app project
First, go to the folder where the app is to be generated: for example, mine is: /home/king/work/senchaworkspace ,
-
cd /home/king/work/senchaworkspacesencha-sdk/path/to/framework -dir generate app MyApp.
Among them, /path/to/framework-dir is replaced by /home/king/software/senchaCmd/touch-2.2.1, namely touch The directory of the framework, pay attention to the “.” at the end, which refers to the creation of the app project in the current directory
sencha-sdk /home/king/software/senchaCmd/touch-2.2.1 generate app MyApp.
A more complete writing is:
sencha-sdk /path/to/framework-dir generate app AppName path/to/app
At this point, you can drag the entire MyApp to tomcat’s webapps Directory, then start tomcat, type in the browser address bar: http://localhost:8080/MyApp/,
You can see the project page:
4. Finally, the project is released, you can use the command :
sencha app build
Of course, in the future, the development will be focused on the third step, using plug-ins in eclipse to develop and develop various pages.