a chat app based on ionic and rongyun
This project is underdevelop and it is unrunnable for the time being.
- server code and fe code are both provided
- automatically build dev&prod with gulp
- support unit&e2e test with karma&jamine and protractor
ProjectName/
├── hooks/
├── node_modules/
├── platforms/
├── plugins/
├── scss
│ ├── ionic.app.scss
│ └── ...
├── server/
├── www/
│ ├── assets/
│ ├── prod/
│ ├── dev/static
│ ├── lib/
│ ├── gulp/
│ │ ├── tasks/
│ │ ├── gulp.config.js
│ │ ├── karma.conf.js
│ │ ├── protratcor.conf.js
│ │ ├── index.js
│ │ └── README.md
│ ├── module/
│ │ ├── common/
│ │ │ ├── js/
│ │ │ │ ├── config.js
│ │ │ │ └── ...
│ │ │ ├── css/
│ │ │ └── tpl/
│ │ ├── app/ (entry)
│ │ ├── modulename/
│ │ │ ├── directives/
│ │ │ ├── pages/
│ │ │ ├── css/
│ │ │ ├── js/
│ │ │ │ ├── modulename.controller.js
│ │ │ │ ├── modulename.directive.js
│ │ │ │ ├── modulename.filter.js
│ │ │ │ ├── modulename.module.js
│ │ │ │ ├── modulename.route.js
│ │ │ │ └── modulename.service.js
│ │ │ └── tpl/
│ │ └── ...
│ ├── index_dev.html
│ ├── index.html
│ └── manifest.json
├── config.xml
├── ionic.project
├── package.json
├── gulpfile.js
├── bower.json
├── .bowerrc
├── .editorconfig
├── .gitignore
├── README.md
└── LICENSE
you may click build notes for more information.
- node with express
- mongodb with mongoose
- redis with redis-connection
- rongyuncloud cordova plugin
- turn/stun server
- socket.io
- install node/redis/mongodb
- set up the enviroment for android/ios
- install ionic. please follow the instrunction on ionicframework
- git clone https://github.com/pengkobe/ionic-chat.git
- cd /path/to/ionic-chat
- ionic platform add android/ios
- ionic build android/ios
- ionic emulate android/ios
looks a little complicated here. just for your purpose of ajusting styles. will support one key set soon.
- userindex.js
//initRong.init(user.rongyunToken);
- contacts
//init();
initTest();
- chatDetail
// init();
- just follow these commands
# notice : you should open your mongodb and redis service first
cd path/to/ionic-chat/server
node bin/www
cd ..
ionic serve
hot updatelocalstorage policy- server push
jwt
- lazy load( for H5 )
compress js( special config for angular )- make it beautiful and stable
a little glimpse of ionic-chat on Chrome:
MIT@pengkobe