Skip to content

pamelafox/python-simple-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Open in GitHub Codespaces

This repository includes a very simple Python web site, made for demonstration purposes only. Do not use the built-in HTTPServer class for production purposes!

To try it out:

  1. Open this repository in Codespaces
  2. Run the server:
python server.py
  1. Click 'http://0.0.0.0:8080' in the terminal, which should open the website in a new tab
  2. Type different paths after the URL to see the effect on the GET requests in the logs
  3. Try POSTing data by sending HTTP POST requests in the JS console:
fetch('/', {method: 'POST', body: 'posted data'})

About

A very simple Python server (for classroom example, NOT for production!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published