You can start local server which receives, stores messages. It has POST method to send messages. By starting messenger you will have an app with graphical interface to send and view messages. You can expose a local web server to the internet with ngrok.
- Run server
python server.py
- Run interface
python messenger.py
- (or if you want to expose your server to the internet)
- Run
./ngrok http 5000
where 5000 is port from step 1. - Change
ip_address
in messenger.py (line 81) to new from step 2. - Run interface
python messenger.py
For this project were used: