https://github.com/syumai/wee-chat
Sample Chat app implemented in Weex and WebSocket
https://github.com/syumai/wee-chat
javascript vue weex
Last synced: 8 months ago
JSON representation
Sample Chat app implemented in Weex and WebSocket
- Host: GitHub
- URL: https://github.com/syumai/wee-chat
- Owner: syumai
- Created: 2017-07-16T05:21:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T11:14:50.000Z (almost 9 years ago)
- Last Synced: 2025-07-24T06:59:15.390Z (11 months ago)
- Topics: javascript, vue, weex
- Language: JavaScript
- Size: 32.2 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wee-chat
Sample chat app implemented in Weex and WebSocket.
## Setup
```bash
npm install
```
## Usage
```bash
npm run dev
npm run ws
npm run serve
```
* Then, scan QR code on your [Weex playground](https://weex.incubator.apache.org/playground.html)
* This app worked on my Android phones (local area network only)
- receiving message not working on iOS (only sending works)
## File structure
* `src/*`: all source code
* `app.js`: entrance of the Weex page
* `build/*`: some build scripts
* `dist/*`: where places generated code
* `assets/*`: some assets for Web preview
* `index.html`: a page with Web preview and qrcode of Weex js bundle
* `weex.html`: Web render
* `.babelrc`: babel config (preset-2015 by default)
* `.eslintrc`: eslint config (standard by default)
## npm scripts
```bash
# build both two js bundles for Weex and Web
npm run build
# build the two js bundles and watch file changes
npm run dev
# start a Web server at 8080 port
npm run serve
# start a WebSocket server at 8181 port
npm run ws
# start weex-devtool for debugging with native
npm run debug
```