add base project
This commit is contained in:
14
compose.yml
Normal file
14
compose.yml
Normal 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
9
list.txt
Normal 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
28
web/app.py
Normal 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
8
web/dockerfile
Normal 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
0
web/static/about.css
Normal file
0
web/static/contact.css
Normal file
0
web/static/contact.css
Normal file
0
web/static/experiences.css
Normal file
0
web/static/experiences.css
Normal file
3
web/static/index.css
Normal file
3
web/static/index.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.test{
|
||||||
|
|
||||||
|
}
|
||||||
0
web/static/projecs.css
Normal file
0
web/static/projecs.css
Normal file
16
web/templates/view/about.html
Normal file
16
web/templates/view/about.html
Normal 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>
|
||||||
16
web/templates/view/contact.html
Normal file
16
web/templates/view/contact.html
Normal 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>
|
||||||
16
web/templates/view/experiences.html
Normal file
16
web/templates/view/experiences.html
Normal 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>
|
||||||
17
web/templates/view/index.html
Normal file
17
web/templates/view/index.html
Normal 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>
|
||||||
16
web/templates/view/projects.html
Normal file
16
web/templates/view/projects.html
Normal 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>
|
||||||
Reference in New Issue
Block a user