Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Fixed introduction code in started.md #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@ advantage of some new Python features.


```py
from vibora import Vibora, JsonResponse
from vibora import Vibora, Request
from vibora.responses import JsonResponse

app = Vibora()


@app.route('/')
async def home():
async def home(request: Request):
return JsonResponse({'hello': 'world'})


if __name__ == '__main__':
app.run(host="0.0.0.0", port=8000)
app.run(debug=True, host='0.0.0.0', port=8000)
```

3. Run the server: `python3 anything.py`
Expand Down