commit 70fb6b82bd9ec0dcc1ed338d9621f23d8f4301ac Author: M1n-0 Date: Mon Mar 9 09:57:38 2026 +0100 add base project diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..aedda0c --- /dev/null +++ b/compose.yml @@ -0,0 +1,14 @@ +services: + flask: + build: ./web + environment: + - DB_HOST=mariadb + - DB_USER=flaskuser + - DB_PASSWORD=flaskpass + - DB_NAME=flaskdb + depends_on: + - mariadb + volumes: + - ./web:/app + ports: + - "5000:5000" \ No newline at end of file diff --git a/list.txt b/list.txt new file mode 100644 index 0000000..e09e7d9 --- /dev/null +++ b/list.txt @@ -0,0 +1,9 @@ +Section 1 — Projets majeurs (6 max) + +1 - Infrastructure self-hosted +2 - GestHub +3 - Mini Born d'arcade +4 - ModulX +5 - Pong LED Arduino +6 - Robot mini-foot + diff --git a/web/app.py b/web/app.py new file mode 100644 index 0000000..f752f2b --- /dev/null +++ b/web/app.py @@ -0,0 +1,28 @@ +from flask import Flask, render_template + +app = Flask(__name__, static_folder='static', static_url_path='/static') + +@app.route('/') +def index(): + return render_template('view/index.html') + +@app.route('/about') +def about(): + return render_template('view/about.html') + +@app.route('/contact') +def contact(): + return render_template('view/contact.html') + +@app.route('/projects') +def projects(): + return render_template('view/projects.html') + +@app.route('/experiences') +def experiences(): + return render_template('view/experiences.html') + +if __name__ == '__main__': + # app.run(debug=True) + app.run(debug=True, host='0.0.0.0', port=5000) + diff --git a/web/dockerfile b/web/dockerfile new file mode 100644 index 0000000..6637610 --- /dev/null +++ b/web/dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11 + +WORKDIR /web +COPY . /web + +RUN pip install flask + +CMD ["python", "app.py"] diff --git a/web/static/about.css b/web/static/about.css new file mode 100644 index 0000000..e69de29 diff --git a/web/static/contact.css b/web/static/contact.css new file mode 100644 index 0000000..e69de29 diff --git a/web/static/experiences.css b/web/static/experiences.css new file mode 100644 index 0000000..e69de29 diff --git a/web/static/index.css b/web/static/index.css new file mode 100644 index 0000000..bf20c68 --- /dev/null +++ b/web/static/index.css @@ -0,0 +1,3 @@ +.test{ + +} \ No newline at end of file diff --git a/web/static/projecs.css b/web/static/projecs.css new file mode 100644 index 0000000..e69de29 diff --git a/web/templates/view/about.html b/web/templates/view/about.html new file mode 100644 index 0000000..a5550df --- /dev/null +++ b/web/templates/view/about.html @@ -0,0 +1,16 @@ + + + + + + Document + + +

about

+ index + projects + about + contact + experiences + + \ No newline at end of file diff --git a/web/templates/view/contact.html b/web/templates/view/contact.html new file mode 100644 index 0000000..51819f7 --- /dev/null +++ b/web/templates/view/contact.html @@ -0,0 +1,16 @@ + + + + + + Document + + +

contact

+ index + projects + about + contact + experiences + + \ No newline at end of file diff --git a/web/templates/view/experiences.html b/web/templates/view/experiences.html new file mode 100644 index 0000000..eade703 --- /dev/null +++ b/web/templates/view/experiences.html @@ -0,0 +1,16 @@ + + + + + + Document + + +

experiences

+ index + projects + about + contact + experiences + + \ No newline at end of file diff --git a/web/templates/view/index.html b/web/templates/view/index.html new file mode 100644 index 0000000..e3c0549 --- /dev/null +++ b/web/templates/view/index.html @@ -0,0 +1,17 @@ + + + + + + + Document + + +

index

+ index + projects + about + contact + experiences + + \ No newline at end of file diff --git a/web/templates/view/projects.html b/web/templates/view/projects.html new file mode 100644 index 0000000..eb019e9 --- /dev/null +++ b/web/templates/view/projects.html @@ -0,0 +1,16 @@ + + + + + + Document + + +

projects

+ index + projects + about + contact + experiences + + \ No newline at end of file