Skip to content

Simple pure Python web server illustrating how easy it is to setup a web server in python. A good use case this is quickly testing your front end.

Notifications You must be signed in to change notification settings

GameMaker2k/webserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The simplest Python Webserver

This script is the bare-minimum code required to get a simple web server up and running. It uses Python's HTTP built-in modules (BaseHTTPServer, SimpleHTTPServer) to serve an html page (labeled 'frontend.html' in this case).

How to use

Download the zip (or run a git clone https://github.com/jduyon/webserver.git), and make sure you have Python 2.7 installed. Run the webserver.py and your browser will automaticaly open up the 'frontend.html' page. This script is really good for quickly setting up a server to test your frontend's HTML / JavaScript / CSS.

Bugs

-Don't expect any form of security with this -The use case of this script is for showing how easily a webserver can be setup in python, and testing your frontend. -Not packaged like a true python package, should be packaged (peter piper picked a pickled...)

About

Simple pure Python web server illustrating how easy it is to setup a web server in python. A good use case this is quickly testing your front end.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.6%
  • HTML 42.4%