Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 0bbe586

Browse files
committed
Update example and README.md
1 parent ce02172 commit 0bbe586

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,14 @@ Now install the dependencies and tests:
6868
To run the tests:
6969

7070
pytest
71+
72+
73+
## Run example
74+
75+
To run the examples simply run:
76+
77+
```bash
78+
PYTHONPATH=. python examples/app.py
79+
```
80+
81+
Before running example make sure you have all dependencies installed.

examples/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ async def test(sid, *args, **kwargs):
2525

2626
import uvicorn
2727

28-
uvicorn.run("examples:app", host='0.0.0.0', port=8000, reload=True, debug=False)
28+
uvicorn.run("examples.app:app", host='0.0.0.0', port=8000, reload=True, debug=False)

0 commit comments

Comments
 (0)