From 2e0b03f1822b8a910e1c1979e17e97e630bba159 Mon Sep 17 00:00:00 2001 From: Matheus Date: Fri, 5 Jun 2020 13:51:11 -0300 Subject: [PATCH] Started the Python script and a example html file --- SelfHost.py | 9 +++++++ index.htm | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 SelfHost.py create mode 100644 index.htm diff --git a/SelfHost.py b/SelfHost.py new file mode 100644 index 0000000..738ac1e --- /dev/null +++ b/SelfHost.py @@ -0,0 +1,9 @@ +import http.server +import socketserver + +PORT = 8080 # Define the standard port +Handler = http.server.SimpleHTTPRequestHandler # Simple http request handler, it commits all files and directories within the SelfHost.py folder + +with socketserver.TCPServer(("", PORT), Handler) as httpd: # ("ip address", desired port), call the resquests from files + print("Running @ ", PORT) # Simply outputs on terminal the port that the server is operating + httpd.serve_forever() # Method that simply begins listening and responding to incoming requests \ No newline at end of file diff --git a/index.htm b/index.htm new file mode 100644 index 0000000..7f544f6 --- /dev/null +++ b/index.htm @@ -0,0 +1,74 @@ + + + + Pandora + + + + + + + + + +
+
+
+

Pandora WebServer

+
+
+ + + + +
+
+ +
+

What the fuck is pandora?

+
Spoiler: its a selfhost thing
+

Pandora is a self hosting web server wich can be used to test and fastly deploy web pages and apps. It is made in Python 3 and is very lightweight. +
+
It uses basic python library and executes and listens on a specific port wich can be changed and it even handles a IP if one wishes to deploy and test in a real world situation. +
+

+

+ +

RECENT POSTS

+
+

Officially Blogging

+
Post by John Doe, Sep 24, 2015.
+
Lorem

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+
+ +