Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e6121ad
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
b61c22b
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
0aa784c
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
6d0217e
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
d4cfc82
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
e56c60f
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
57cb83c
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
9033d99
feat(frontend): Fixes #119 - Installation Nextjs
RustyRory Feb 16, 2026
a5a25d5
Merge pull request #120 from RustyRory/feat/119-installation-nextjs
RustyRory Feb 16, 2026
2efee4a
feat(front): Fixes #119 - Installation NextJs
RustyRory Feb 23, 2026
6c696e4
feat(front): Fixes #119 - Installation NextJs
RustyRory Feb 23, 2026
89e4cbd
Merge pull request #121 from RustyRory/feat/119-installation-nextjs
RustyRory Feb 23, 2026
0b2d423
feat(front): Fixes #122 - fetch api
RustyRory Feb 25, 2026
cdf753a
feat(front): Fixes #122 - fetch api
RustyRory Feb 25, 2026
f2c1d54
feat(front): Fixes #122 - fetch api
RustyRory Feb 25, 2026
07cfae6
Merge pull request #123 from RustyRory/feat/122-api-fetch
RustyRory Feb 25, 2026
072f759
feat(docs): Fixes #124 - Doc workflow frontend
RustyRory Feb 25, 2026
4964958
feat(next): Fixes #124 - Login & Register pages
RustyRory Feb 25, 2026
3dc78ee
Merge pull request #129 from RustyRory/feat/124-page-login
RustyRory Feb 25, 2026
6584178
feat(api): Fixes #125 - Routes next
RustyRory Feb 25, 2026
e6bfafb
Merge pull request #130 from RustyRory/feat/125-route-next-api
RustyRory Feb 25, 2026
26c7ebd
feat(api): Fixes #126 - Route auth
RustyRory Feb 25, 2026
f7efa5a
Merge pull request #131 from RustyRory/feat/126-route-authme
RustyRory Feb 25, 2026
d1794c4
feat(api): Fixes #127 - Middleware proxy
RustyRory Feb 25, 2026
07767a4
Merge pull request #132 from RustyRory/feat/127-middleware-login
RustyRory Feb 25, 2026
ce7f494
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
04349e4
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
fcd121a
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
842241d
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
4242618
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
4ac23db
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
1241a7b
feat(backoffice): Fixes #133 - Dashboard Admin
RustyRory Feb 26, 2026
e1961b8
Merge pull request #134 from RustyRory/feat/133-dashboard-admin
RustyRory Feb 26, 2026
d494591
feat(login): Fixes #135 - Fix Register + Login
RustyRory Mar 27, 2026
06e879a
feat(login): Fixes #135 - Fix Register + Login
RustyRory Mar 27, 2026
5f4e782
Merge pull request #136 from RustyRory/feat/135-email-register
RustyRory Mar 27, 2026
73dcff8
feat(dashboard): Fixes #137 - Admin Club
RustyRory Mar 27, 2026
29601e3
feat(dashborad): Fixes #137 - Admin Club
RustyRory Mar 28, 2026
7104bc3
Merge pull request #139 from RustyRory/feat/137-dashboard-club
RustyRory Mar 30, 2026
5d4f757
feat(dashboard): Fixes #138 - Dashboard membres
RustyRory Apr 5, 2026
80edba7
Merge pull request #140 from RustyRory/feat/138-dashboard-membres
RustyRory Apr 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
75 changes: 37 additions & 38 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Audit des dépendances npm Backend et Frontend'
name: 'Audit des dépendances npm'

on:
pull_request:
Expand All @@ -9,47 +9,46 @@ on:
- dev

jobs:
npm-audit:
audit-backend:
name: 'Audit Backend'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: 'Checkout code'
uses: actions/checkout@v4

- name: 'Setup Node.js'
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: saintBarthVolleyApp/backend/package-lock.json

- name: 'Installer les dépendances'
run: npm ci
working-directory: saintBarthVolleyApp/backend

- name: 'Audit npm backend'
run: npm audit --audit-level=high --omit=dev
working-directory: saintBarthVolleyApp/backend

audit-frontend:
name: 'Audit Frontend'
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 'Setup Node.js'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# ----------------------
# Backend audit
# ----------------------
- name: 'Installation des dépendances backend'
run: |
echo "Installation des dépendances backend"
cd app/backend
npm install

- name: "Lancement de l'audit npm backend"
run: |
echo "Audit des dépendances backend"
cd app/backend
npm audit --audit-level=high

# ----------------------
# Frontend audit
# ----------------------
- name: 'Installation des dépendances frontend'
run: |
echo "Installation des dépendances frontend"
cd app/frontend
npm install

- name: "Lancement de l'audit npm frontend"
run: |
echo "Audit des dépendances frontend"
cd app/frontend
npm audit --audit-level=high
node-version: '20'
cache: 'npm'
cache-dependency-path: saintBarthVolleyApp/frontend/package-lock.json

- name: 'Installer les dépendances'
run: npm ci
working-directory: saintBarthVolleyApp/frontend

- name: 'Audit npm frontend'
run: npm audit --audit-level=high --omit=dev
working-directory: saintBarthVolleyApp/frontend
69 changes: 69 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: 'Deploy to VPS'

on:
push:
branches:
- main

jobs:
deploy:
name: 'Déploiement SaintBarth Volley'
runs-on: ubuntu-latest

steps:
- name: 'Checkout code'
uses: actions/checkout@v4

- name: 'Deploy via SSH'
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: 22
script: |
set -e
echo "🚀 Déploiement SaintBarth Volley"

REPO_DIR="/var/www/SaintBarthVolley"
COMPOSE_FILE="/var/www/docker-compose.yml"

# ── Cloner ou mettre à jour le repo ──────────────────────────
if [ ! -d "$REPO_DIR/.git" ]; then
echo "📥 Premier déploiement — clonage du repo..."
git clone https://github.com/${{ github.repository }}.git "$REPO_DIR"
else
echo "🔄 Mise à jour du code..."
git -C "$REPO_DIR" fetch origin main
git -C "$REPO_DIR" reset --hard origin/main
fi
echo "✅ Code à jour"

# ── Vérifier que le .env backend existe ───────────────────────
ENV_FILE="$REPO_DIR/saintBarthVolleyApp/backend/.env"
if [ ! -f "$ENV_FILE" ]; then
echo "❌ Fichier .env manquant : $ENV_FILE"
echo " Créez-le depuis .env.example avant de déployer."
exit 1
fi
echo "✅ Fichier .env backend trouvé"

# ── Rebuild et restart uniquement les services SaintBarth ─────
echo "🔨 Build des images..."
docker compose -f "$COMPOSE_FILE" build --no-cache sbv-api sbv-front

echo "🔄 Redémarrage des containers..."
docker compose -f "$COMPOSE_FILE" up -d --remove-orphans sbv-api sbv-front

echo "✅ Containers démarrés"

# ── Nettoyage des images obsolètes ────────────────────────────
docker image prune -f

# ── Vérification finale ───────────────────────────────────────
echo ""
echo "📊 État des containers SaintBarth :"
docker ps --filter "name=sbv-" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"

echo ""
echo "🎉 Déploiement terminé !"
5 changes: 2 additions & 3 deletions .github/workflows/hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: 'Checkout code'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -81,7 +81,6 @@ jobs:
fi

CONTENT=$(echo "$SECTION" | grep -Ev '^(## |\s*$|### )')

if [[ -z "$CONTENT" ]]; then
echo "❌ Le changelog pour la version $VERSION est vide"
exit 1
Expand All @@ -107,4 +106,4 @@ jobs:

- name: 'PR mergée sur dev'
if: github.event.pull_request.base.ref == 'dev'
run: echo "PR mergée sur dev, aucune release ni tag créé."
run: echo "PR mergée sur devaucune release créée."
43 changes: 20 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,35 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]

steps:
- name: 'Checkout code'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 'Setup Node.js'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: '20'
cache: 'npm'
cache-dependency-path: |
saintBarthVolleyApp/backend/package-lock.json
saintBarthVolleyApp/frontend/package-lock.json

- name: 'Installation ESLint & Prettier'
run: |
cd app/backend
npm init -y
npm install eslint prettier --save-dev
cd ../frontend
npm init -y
npm install eslint prettier --save-dev
- name: 'Installer les dépendances backend'
run: npm ci
working-directory: saintBarthVolleyApp/backend

- name: 'Lancer ESLint backend'
run: |
cd app/backend
npx eslint . --ext .js,.ts || echo "✅ Pas de fichiers backend JS/TS à lint"
run: npx eslint . --ext .js,.ts
working-directory: saintBarthVolleyApp/backend

- name: 'Installer les dépendances frontend'
run: npm ci
working-directory: saintBarthVolleyApp/frontend

- name: 'Lancer ESLint frontend'
run: |
cd app/frontend
npx eslint . --ext .js,.jsx || echo "✅ Pas de fichiers frontend JS/JSX à lint"
run: npx eslint . --ext .js,.jsx,.ts,.tsx
working-directory: saintBarthVolleyApp/frontend

- name: 'Lancer Prettier check'
run: |
npx prettier --check . || echo "✅ Pas de fichiers à formater"
- name: 'Prettier check (global)'
run: npx prettier --check "saintBarthVolleyApp/**/*.{js,ts,tsx,jsx,json}" --ignore-path .gitignore
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: 'Checkout code'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -69,7 +69,6 @@ jobs:
exit 1
fi

# Extraire uniquement la section de la version
SECTION=$(awk "
BEGIN {found=0}
/^## \\[$VERSION\\]/ {found=1}
Expand All @@ -82,21 +81,17 @@ jobs:
exit 1
fi

# Vérifier que la section contient du contenu réel
CONTENT=$(echo "$SECTION" | grep -Ev '^(## |\s*$|### )')

if [[ -z "$CONTENT" ]]; then
echo "❌ Le changelog pour la version $VERSION est vide"
exit 1
fi

echo "✅ Changelog valide pour la version $VERSION"

echo "release_notes<<EOF" >> $GITHUB_OUTPUT
echo "$SECTION" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT


- name: 'Créer le tag'
run: |
git tag "${{ steps.semver.outputs.tag }}"
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/structure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
done

# Dossiers obligatoires
DIRS=("app/frontend" "app/backend")
DIRS=("saintBarthVolleyApp/frontend" "saintBarthVolleyApp/backend")
for DIR in "${DIRS[@]}"; do
if [ ! -d "$DIR" ]; then
echo "❌ Dossier manquant : $DIR"
Expand All @@ -42,27 +42,19 @@ jobs:
done

# Vérification interne frontend
if [ -d "app/frontend" ]; then
if [ ! -f "app/frontend/package.json" ]; then
if [ -d "saintBarthVolleyApp/frontend" ]; then
if [ ! -f "saintBarthVolleyApp/frontend/package.json" ]; then
echo "❌ Fichier manquant dans frontend : package.json"
INVALID=true
fi
if [ ! -f "app/frontend/.env.example" ]; then
echo "❌ Fichier manquant dans frontend : .env.example"
INVALID=true
fi
fi

# Vérification interne backend
if [ -d "app/backend" ]; then
if [ ! -f "app/backend/package.json" ]; then
if [ -d "saintBarthVolleyApp/backend" ]; then
if [ ! -f "saintBarthVolleyApp/backend/package.json" ]; then
echo "❌ Fichier manquant dans backend : package.json"
INVALID=true
fi
if [ ! -f "app/backend/.env.example" ]; then
echo "❌ Fichier manquant dans backend : .env.example"
INVALID=true
fi
fi

# Blocage si structure incorrecte
Expand Down
Loading
Loading