Alibaba Open Source Weex Development Tutorial

What is Weex

Weex is an open source product released by Ali that uses WEB to develop native apps.

Weex can perfectly balance performance and dynamism, allowing mobile developers to write native-level performance experience through a simple front-end syntax, and supports multi-terminal deployments such as iOS, Android, YunOS and Web. For mobile developers, Weex mainly solves the two major pain points of frequent release and multi-terminal research and development, and also solves the problems of poor front-end language performance and limited display effect.



 
Developers only need to embed Weex's SDK in their APPs, and then they can develop native-level Weex interfaces by writing HTML/CSS/JavaScript. The generated code of the Weex interface is actually a small piece of JS, which can be easily deployed on the server side like publishing a web page, and then requested to be executed in the APP.

Compared with existing open source cross-platform mobile open projects such as Facebook's React Native and Microsoft's Cordova, Weex is lighter and smaller. Because it is based on the web component standard, the development is more concise and standard, and it is easy to get started. Both Native components and APIs can be scaled horizontally to facilitate flexible customization according to business. The Weex rendering layer has excellent performance and can achieve consistent layout effects and implementations across platforms. For front-end development, Weex enables componentized development, automated data binding, and embraces web standards.

Talking about why Alibaba wants to open source such a valuable mobile development tool, Zhuang Zhuoran, senior director of Alibaba wireless technology, said, "Alibaba hopes to empower the mobile development ecosystem, share Alibaba's technology accumulation with mobile developers, and grow together with developers. .We welcome more developers and technical teams to join the Weex open source project, so that China's mobile community can have a greater impact in the world."

 

The wireless business has developed rapidly. In fiscal year 2015, the number of mobile Taobao users reached about 400 million. Last year, Tmall double 11 mobile transactions accounted for as high as 68%. The Alibaba Wireless team has been exploring cross-platform mobile development solutions that take into account both dynamism and performance. The birth of Weex is due to WeApp, a project developed by Alibaba in the early days to describe native rendering through JSON data, and Vue.js, an excellent front-end open source MVVM framework. Alibaba engineers deeply combined WeApp's excellent rendering capabilities with Vue.js' excellent front-end development experience to create Weex, a cross-platform mobile development tool.

"At present, Weex can already support aircraft carrier-level mobile applications such as mobile phone Taobao, which solves the dynamic problem very well, and optimizes the flexibility of the mobile application itself, the cycle of iterative update and the cost to the extreme." Weex project leader, Ali senior Wireless expert Wu Zhihua said, "For example, we can support merchants to decorate their stores in real-time on mobile Taobao, or adjust interface information and status in time during previous promotions to ensure that we can keep up with the rhythm of promotions in the ever-changing activities."

Weex will rely on Alibaba Baichuan provides open source support and community interaction for mobile developers to help more developers learn and apply quickly. At the QCon conference that day, Alibaba Baichuan and Geekbang Technology reached a strategic partnership to jointly build a mobile developer ecosystem and create a better community atmosphere and growth environment for Chinese mobile developers.

Alibaba Baichuan ( baichuan.taobao.com ) is a wireless open platform of Alibaba Group. Through the opening of "technology, business and big data", it provides a highly cohesive, open, industry-leading technology product matrix, mature Commercial components and a complete service system help mobile developers quickly build APPs, accelerate the process of APP commercialization, and empower mobile developers and mobile entrepreneurs in an all-round way.

 

Next: Weex environment setup (win7)

Project homepage

weex official website

weex documentation

weex的github

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326483215&siteId=291194637