Simple chat service using ejabberd + strophe.js.
$ docker-compose up
# Create chat account.
$ docker-compose exec xmpp /home/p1/ejabberd-api register \
--endpoint=http://127.0.0.1:5280/ \
--jid=user@localhost \
--password=icanseeyou
# Run echobot.
$ docker-compose exec web python echobot.py -d -j admin@localhost -p icanseeyou
# Send message on server. (Optional)
$ docker-compose exec web python send_client.py -d \
-j admin@localhost -p icanseeyou \
-t user@localhost -m "Hello, World!"
- Run the compose app.
$ docker-compose up
- Create two chat accounts (e.g. user@localhost, admin@localhost).
See synopsis.
- Go to
http://localhost:8080
and login. - Send message to admin. You should see logs about it.
This is meant to be a proof-of-concept app. Not for production use.