A simple approach to how to create a chat with Web2py + Tornado + JQuery
- Real-time chat
- Improve the interface
- Migrate to AngularJS
- Download web2py: http://web2py.com
- Clone this repository inside web2py applications folder: `git clone https://github.com/dutraleonardo/web2sockets.git
- Install Tornado:
pip install tornado
Terminal:
- cd web2py
- python web2py.py -a "yourpassword" In another terminal window:
- python gluon/contrib/websocket_messaging.py -k mykey -p 8888 (Will not show any messages after run this script) Browser:
- http://localhost:8000/web2sockets/default/index
Copyright (c) 2017 Leonardo Dutra & licensed under GNU General Public License v3.0