Skip to content

Feature/league monteregie - #80

Merged
benoitmignault merged 207 commits into
mainfrom
feature/league-monteregie
May 22, 2026
Merged

Feature/league monteregie#80
benoitmignault merged 207 commits into
mainfrom
feature/league-monteregie

Conversation

@benoitmignault

Copy link
Copy Markdown
Owner

This pull request introduces the initial implementation of a web application for the "Ligue de Golf Montérégie", including both backend PHP API endpoints and a frontend React application scaffolded with Vite. The most important changes are the creation of several API endpoints for retrieving and logging league data, the setup of secure and CORS-enabled database connection handling, and the initialization of the frontend app with supporting configuration and components.

Backend: PHP API Endpoints and Database Connection

  • Added multiple PHP API endpoints to serve league data:
    • standings.php: Returns player standings with total points, supporting players with or without results.
    • eventslist.php: Returns a list of golf events, sorted by date.
    • event-details.php: Returns detailed results for a specific event, including player scores and rankings.
    • player-details.php: Returns all event results for a specific player.
    • log-action.php: Accepts POST requests to log actions (such as page loads) to the website_logs table.
  • Implemented a secure and reusable database connection function with proper CORS and content-type headers in fct-connexion-bd.php, and moved sensitive credentials to an ignored file (info-connexion-bd.php). [1] [2]

Frontend: React Application Initialization

  • Initialized a new React app using Vite, with supporting files:
    • Added package.json, ESLint config, and a .gitignore for proper project structure and code quality. [1] [2] [3]
    • Created environment files for API base URLs in development and production. [1] [2]
    • Added a basic index.html and a README.md with project setup instructions. [1] [2]
  • Implemented the main App.jsx component with sections for standings, events, sponsors, mission, contact, and footer, and included logic to log page loads via the backend API.
  • Added a ContactSection component to display organizer and developer contact information.

@benoitmignault benoitmignault self-assigned this May 22, 2026
Copilot AI review requested due to automatic review settings May 22, 2026 18:13
@benoitmignault
benoitmignault merged commit 195622d into main May 22, 2026
1 of 2 checks passed
@benoitmignault
benoitmignault deleted the feature/league-monteregie branch May 22, 2026 18:15
@benoitmignault
benoitmignault removed the request for review from Copilot May 22, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant