Skip to content

encode/starlette-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example Starlette application

Install and run:

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

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

Homepage

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

Homepage

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

Homepage

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

About

An example Starlette application

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published