Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelgrinberg/socketio-examples
A few examples that demonstrate the features of the Python Socket.IO server
https://github.com/miguelgrinberg/socketio-examples
flask socket-io websocket
Last synced: 9 days ago
JSON representation
A few examples that demonstrate the features of the Python Socket.IO server
- Host: GitHub
- URL: https://github.com/miguelgrinberg/socketio-examples
- Owner: miguelgrinberg
- License: mit
- Created: 2017-10-08T17:26:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T18:30:58.000Z (about 7 years ago)
- Last Synced: 2024-05-23T09:33:20.006Z (6 months ago)
- Topics: flask, socket-io, websocket
- Language: JavaScript
- Size: 33.2 KB
- Stars: 88
- Watchers: 4
- Forks: 37
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Socket.IO Examples
This repository contains a few examples that demonstrate the features of the
Python Socket.IO server in combination with Flask.## How to Run
First create a virtual environment and import the requirements.
One of the demos uses the Google Maps API. For that demo to work you need to
request a Google Maps API key from Google, as described
[here](https://developers.google.com/maps/documentation/javascript/get-api-key).To start the server, run:
```
(venv) $ export GOOGLE_MAPS_KEY=
(venv) $ export FLASK_APP=socketio_examples.py
(venv) $ flask run
```Finally, open _http://localhost:5000_ on your web browser to access the
application.Note: You can run the application without a Google Maps key. All the demos
except "Where do you live?" will work just fine.