diff --git a/flaskapp.py b/flaskapp.py new file mode 100644 index 0000000..d53a873 --- /dev/null +++ b/flaskapp.py @@ -0,0 +1,13 @@ +from flask import Flask, render_template +app = Flask("Project Numeri") + +@app.route('/') +def index(): + return render_template('index.html') + + + +def RunWeb(): + app.run(debug=True) + + diff --git a/main.py b/main.py new file mode 100644 index 0000000..5d5e684 --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +from flaskapp import * +from plots import Cijferlijst + +if __name__ == "__main__": + cf = Cijferlijst() + RunWeb() \ No newline at end of file diff --git a/numpy b/numpy new file mode 100644 index 0000000..e69de29 diff --git a/plots.py b/plots.py new file mode 100644 index 0000000..87fa85b --- /dev/null +++ b/plots.py @@ -0,0 +1,10 @@ +import pandas as pd +import numpy as np +GRADE_LIST = pd.read_csv("Cijfers-HerrewijnenJonathan.csv", skiprows=3) + +class Cijferlijst: + def __init__(self, grade_list=GRADE_LIST): + self.grade_list = grade_list + + def iets(self): + print(self.grade_list) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..dd9f47b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +pandas diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..c086203 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + {% block body %}{% endblock %} + + + {% block scripts %}{% endblock %} + + \ No newline at end of file