# Single line webserver for testing HTML5 apps

**URL:** <https://talk.lugbz.org/t/single-line-webserver-for-testing-html5-apps/6339>\
**Category:** General\
**Created:** [July 23, 2018, 8:50pm UTC](https://talk.lugbz.org/t/single-line-webserver-for-testing-html5-apps/6339 "2018-07-23T20:50:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Ohnewein3](https://talk.lugbz.org/user_avatar/talk.lugbz.org/patrick_ohnewein3/32/6444_2.png) [@Patrick\_Ohnewein3](https://talk.lugbz.org/u/Patrick_Ohnewein3)\
**Post date:** [July 23, 2018, 8:50pm UTC](https://talk.lugbz.org/t/single-line-webserver-for-testing-html5-apps/6339/1 "2018-07-23T20:50:11Z")

</div>

Hi LUGBZ,

last week I wanted to test a project we released under the AGPLv3.

It is a webapp to generate flyers for the Java Developer Meetings we  
organize together with partners like the JUGTAAS, UNIBZ and Fraunhofer  
at the NOI Techpark.

The code has been developed by the team of Andrea Cima as an HTML5 app,  
which doesn't need any backend. But to test the source code the  
developer has to deploy it on a webserver.

I didn't want to install and configure an Apache webserver on my laptop,  
because I would have to take care about firewalling it, etc. So I made a  
small research and discovered that using python - which I have already  
installed on my laptop - it's possible to start a local simple http  
server on the fly.

Check it out:

> <https://github.com/noi-techpark/flyer-generator/blob/master/README.md>

> # start a simple python webserver on a free port (usually 8080)  
> $ python -m SimpleHTTPServer 8080

Maybe this could be helpful to someone! And of course suggestions and  
feedback is very welcome!

Happy hacking!  
Patrick

[attachment.htm](https://talk.lugbz.org/uploads/short-url/hKmaQQO1uWNasOADfAR8mqRZ8AG.htm) (1.69 KB)
