Skip to content
Snippets Groups Projects
Commit 0db2d29f authored by Robert Goldmann's avatar Robert Goldmann
Browse files

initial commit

parent 126a1451
Branches
Tags v2.12.0
No related merge requests found
/Pipfile.lock
/settings.json
Pipfile 0 → 100644
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://pypi.thecodelabs.de"
verify_ssl = true
name = "TheCodeLabs"
[requires]
python_version = "3"
[packages]
flask = "==1.1.2"
gevent = "==20.6.1"
TheCodeLabs-BaseUtils = "*"
TheCodeLabs-FlaskUtils = "*"
[dev-packages]
{
"server": {
"listen": "0.0.0.0",
"port": 10003,
"secret": "",
"useSSL": false,
"keyfile": "",
"certfile": ""
}
}
\ No newline at end of file
import os
from TheCodeLabs_BaseUtils.DefaultLogger import DefaultLogger
from TheCodeLabs_FlaskUtils.FlaskBaseApp import FlaskBaseApp
from blueprints import Routes
from logic import Constants
from logic.Page import PageManager
from logic.services.JenkinsSingleJobService import JenkinsSingleJobService
LOGGER = DefaultLogger().create_logger_if_not_exists(Constants.APP_NAME)
class StorageLeaf(FlaskBaseApp):
def __init__(self, appName: str):
super().__init__(appName, os.path.dirname(__file__), LOGGER, serveRobotsTxt=False)
def _register_blueprints(self, app):
app.register_blueprint(Routes.construct_blueprint(self._settings))
return app
if __name__ == '__main__':
website = StorageLeaf(Constants.APP_NAME)
website.start_server()
from flask import Blueprint, render_template
def construct_blueprint(settings):
routes = Blueprint('routes', __name__)
@routes.route('/', methods=['GET'])
def index():
return render_template('index.html')
return routes
import os
APP_NAME = 'StorageLeaf'
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
{
"version": {
"name": "v1.0.0",
"code": 1,
"date": "23.09.20"
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment