Skip to content
An example Starlette application
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Screenshots Nov 8, 2018
scripts Example Starlette app Nov 8, 2018
statics Example Starlette app Nov 8, 2018
templates fixes typo in script tag in base.html template (#3) Feb 19, 2019
.gitignore
README.md
app.py Update to 0.11 Feb 19, 2019
requirements.txt

README.md

An example Starlette application

Install and run:

git clone https://github.com/encode/starlette-example.git
cd starlette-example
scripts/install
scripts/run

Open http://127.0.0.1:8000/ in your browser:

Homepage

Navigate to path that is not routed, eg http://127.0.0.1:8000/nope:

Homepage

Raise a server error by navigating to http://127.0.0.1:8000/error:

Homepage

Switch the app = Starlette(debug=True) line to app = Starlette() to see a regular 500 page instead.

You can’t perform that action at this time.