run
Last updated
Last updated
There are 5 ways to run the codes: (The first and second methods are recommended to be the most efficient)
In the src directory, run any kind of these web servers (apache, AMP, lighttp, or Nginx, etc.) to view the execution. This method immediately shows the newly written codes.
Find the Terminal in Mac utility. After it is opened, the Terminal window pops up, where you can type in cd src. Go to the src directory, and then enter the following command to open a web server:
-Finally open in the browser This method also immediately shows the newly written code. The efficiency of this method is the same as that of Method 1.
Exit: Ctrl+C.
Execute the publish command: sh p.sh
Commit it to github, then open You can see the result of the execution. This method spends 1 more minute than Method 1 do. This is the easiest way. The good point is that you don't need a web server and Xcode, and you don't need any other softwares.
Execute the publish command: sh p.sh
Open the Xcode project in the iOS directory, compile and run, you can see the running result in the iPhone simulator. This method spends 5 more minutes than Method 1 do.
Execute the publish command: sh p.sh
You can also open the Xcode project in the iOS directory, publish it to the app store, and download the app in the app store to see the running result. Because you have to wait for Apple to review the app. This method spends 5 more days than Method 1 do.