Added Readme & Dockerfile

This commit is contained in:
Norm Rasmussen
2023-04-14 14:48:41 -04:00
parent eade9a5f27
commit cf96262fa9
18 changed files with 158 additions and 628 deletions

View File

@ -27,10 +27,10 @@ from werkzeug.utils import secure_filename
from app import app
UPLOAD_FOLDER = (
"/Users/normrasmussen/Documents/Projects/CSM_webapp/app/static/files/csv/"
"./app/static/files/csv/"
)
TEMPLATES_FOLDER = (
"/Users/normrasmussen/Documents/Projects/CSM_webapp/app/static/files/templates/"
"./app/static/files/templates/"
)
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
app.config["TEMPLATES_FOLDER"] = TEMPLATES_FOLDER
@ -637,3 +637,6 @@ def undo_template():
@app.route("/stop", methods=["POST"])
def stop():
print("stopping")
if __name__ == "__main__":
app.run(debug=True)

View File

@ -19,6 +19,7 @@
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2.2/code-input.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2/plugins/prism-line-numbers.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.2.2/code-input.min.css">
<link href="{{ url_for('static', filename='css/prism.css')}}" rel="stylesheet" />
</head>

View File

@ -33,6 +33,7 @@
<h2> {{ templates[0] }}</h2>
<h3> Last Updated: {{ templates [2] }}</h3>
<code-input
class="line-numbers"
lang="HTML"
value="{{ templates[1] }}"
id="editor"
@ -62,7 +63,7 @@
{% if templates %}
<h3> Advanced users only: create new template </h3>
<p>&nbsp;</p>
<div class="html_code">
<div class="html_code" style="display: flex;justify-content: center;">
<form
id="templates"
action="{{ url_for('templates')}}"
@ -71,6 +72,7 @@
Enter the code below
</h2>
<code-input
class="line-numbers"
lang="HTML"
id="editor"
name="body"