add base project

This commit is contained in:
2026-03-09 09:57:38 +01:00
commit 70fb6b82bd
14 changed files with 143 additions and 0 deletions

14
compose.yml Normal file
View File

@@ -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"

9
list.txt Normal file
View File

@@ -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

28
web/app.py Normal file
View File

@@ -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)

8
web/dockerfile Normal file
View File

@@ -0,0 +1,8 @@
FROM python:3.11
WORKDIR /web
COPY . /web
RUN pip install flask
CMD ["python", "app.py"]

0
web/static/about.css Normal file
View File

0
web/static/contact.css Normal file
View File

View File

3
web/static/index.css Normal file
View File

@@ -0,0 +1,3 @@
.test{
}

0
web/static/projecs.css Normal file
View File

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>about</h1>
<a href="/">index</a>
<a href="/projects">projects</a>
<a href="/about">about</a>
<a href="/contact">contact</a>
<a href="/experiences">experiences</a>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>contact</h1>
<a href="/">index</a>
<a href="/projects">projects</a>
<a href="/about">about</a>
<a href="/contact">contact</a>
<a href="/experiences">experiences</a>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>experiences</h1>
<a href="/">index</a>
<a href="/projects">projects</a>
<a href="/about">about</a>
<a href="/contact">contact</a>
<a href="/experiences">experiences</a>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../static/index.css">
<title>Document</title>
</head>
<body>
<h1 class="test">index</h1>
<a href="/">index</a>
<a href="/projects">projects</a>
<a href="/about">about</a>
<a href="/contact">contact</a>
<a href="/experiences">experiences</a>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>projects</h1>
<a href="/">index</a>
<a href="/projects">projects</a>
<a href="/about">about</a>
<a href="/contact">contact</a>
<a href="/experiences">experiences</a>
</body>
</html>