Dependency setup

- Poetry for maintaining python server executable
- Reroll Jetbrains configs
- Update readme
- Add launcher build pipeline
This commit is contained in:
MrTeferi
2022-11-21 19:58:20 -06:00
parent a4321f4ffe
commit 6027eb7737
12 changed files with 319 additions and 23 deletions

40
launcher.py Normal file
View File

@@ -0,0 +1,40 @@
"""
IMPORTS
"""
from http.server import SimpleHTTPRequestHandler, HTTPServer
import webbrowser
import os
"""
SETTINGS
"""
NAME = "localhost"
PORT = 8080
DIRECTORY = os.getcwd()
"""
REQUEST HANDLER
"""
class Handler(SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, directory=DIRECTORY, **kwargs)
"""
START APP
"""
if __name__ == "__main__":
webServer = HTTPServer((NAME, PORT), Handler)
print("Server started http://%s:%s" % (NAME, PORT))
try:
webbrowser.open('http://localhost:8080', new=2)
webServer.serve_forever()
except KeyboardInterrupt:
pass
webServer.server_close()
print("Server stopped.")