Before installing, It`s recommended that your Node version >= 8.0, Also recommended to use n for version management, while suggesting NPM version >= 5. And make sure weex-toolkit is latest. You can see more in 【with-weex-toolkit】.
npm i
Start a Web server at 8080 port
npm run serve
weex src/index.vue
Add a weex platform of Android and run commands for testing
weexpack platform add android
weex run android
Add a weex platform of iOS and run commands for testing
weexpack platform add ios
weex run ios
Web | Preview | iOS |
---|---|---|