Disclaimer: Original articles, reproduced please indicate the source, thank you! Http://www.cnblogs.com/fozero/p/5995195.html
In the previous article (http://www.cnblogs.com/fozero/p/5995122.html) we set up the Weex environment and successfully rendered the page in the browser, this article we then build a project
1, create a new folder such as Weexdemo;
2, in the folder execution Weex init, parameters all default can be;
3, after the success of the folder generated a number of files:
Weexdemo
|-.gitignore
|-index.html h5 Display Page
|-src/main.we Default Import We source files
|-package.json Package Configuration
|-webpack.config.js Webpack Package configuration file
|-README.MD Packaging Script Description
4. Implement NPM Install Project dependency Package
You can see that there are more node_modules to indicate that the installation was successful
5. Demo Run
Enter the SRC directory input Weex main.we
The browser runs successfully at this time Weex default main page
Cross-platform development of Ali Weex Framework Environment Construction (II.)