mirror of
https://github.com/BreizhHardware/projet-web-cipa4.git
synced 2026-05-09 08:15:44 +02:00
[PR #1] [MERGED] Feat/backend #2
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/projet-web-cipa4#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/projet-web-cipa4/pull/1
Author: @BreizhHardware
Created: 1/27/2026
Status: ✅ Merged
Merged: 1/27/2026
Merged by: @ClementHVT
Base:
main← Head:feat/backend📝 Commits (10+)
517ccbdfeat(backend): Implement first version of the backend93fe6ffchore: update .gitignore and add initial configuration files09283d9feat(CI/CD): add Dockerfile and CI/CD workflows for deployment452efabfeat(CI/CD): enhance deployment workflow with image URI generation71bc624feat(workflows): refactor branch name sanitization and improve SSH setup09c62c8feat(deploy): add GitHub deployment status creation step67be2a9feat(deploy): replace Cloudflared setup with Tailscale connection for SSH5647ad8feat(deploy): add IdentitiesOnly option for SSH configuration450b61ffeat(deploy): add verbose flag to SSH command for authentication debugging3cf3b1efix: deploy permissions and remove index.html📊 Changes
46 files changed (+2235 additions, -28 deletions)
View changed files
➕
.github/workflows/cleanup.yml(+72 -0)➕
.github/workflows/deploy.yml(+146 -0)📝
.gitignore(+9 -0)➕
.htaccess(+18 -0)➕
Dockerfile(+36 -0)➕
README.MD(+85 -0)➕
apache-config.conf(+12 -0)➕
bruno/Auth/01 - Get CSRF Token.bru(+21 -0)➕
bruno/Auth/02 - Login Action.bru(+19 -0)➕
bruno/Auth/Register Action.bru(+22 -0)➕
bruno/Bookings/Book Trip.bru(+19 -0)➕
bruno/Trips/Create Trip.bru(+23 -0)➕
bruno/Trips/List Trips.bru(+17 -0)➕
bruno/Vehicles/Add Vehicle.bru(+22 -0)➕
bruno/bruno.json(+14 -0)➕
bruno/collection.bru(+4 -0)➕
bruno/environments/Local.bru(+5 -0)➕
composer.json(+11 -0)➕
composer.lock(+100 -0)📝
css/style.css(+28 -1)...and 26 more files
📄 Description
This pull request introduces a complete setup for a secure, native PHP carpooling platform, including backend, frontend, deployment, and development tooling. The most significant changes are the addition of a Docker-based deployment flow, API documentation and test collections, improved security and routing for the web server, and a styled frontend. Below are the key grouped changes:
Deployment & DevOps
deploy.yml) and automated cleanup of Docker containers when branches are deleted (cleanup.yml). These workflows handle building, pushing, and deploying Docker images to a homelab server, with branch-specific container naming and Traefik routing. [1] [2]Dockerfilefor building the PHP/Apache application, installing dependencies, setting permissions, and initializing the database. Includes custom Apache configuration and Composer install.apache-config.conffor Apache virtual host configuration, enabling URL rewriting and access controls..htaccessfor PHP handler setup, pretty URLs, and security rules to restrict access to sensitive files and directories.Backend & API Documentation
README.MDdetailing project architecture, installation steps, API endpoints, and testing instructions.composer.jsonfor dependency management, including PHPMailer and autoloading PHP classes.API Testing & Collections
bruno/), including environment presets, test cases for authentication, booking, trips, vehicles, and a collection config for local development. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Frontend & Styling
index.htmlfor a user-friendly homepage with navigation, actions, and dynamic authentication links.css/style.css, including navigation, error/success messages, and trip card styling. [1] [2]These changes collectively establish a robust foundation for secure PHP development, automated deployment, and easy local testing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.