This directory contains the migrated Symfony 6.4 full-stack version of the INSATivity event management platform.
Since we are migrating to a Symfony structure, all static files must be placed inside the public/ folder.
Please copy the directories from the original workspace:
- Copy
styles/folder ->symfony_version/public/styles/ - Copy
scripts/folder ->symfony_version/public/scripts/ - Copy
assets/folder ->symfony_version/public/assets/
Warning
We have pre-configured symfony_version/public/scripts/config.js with API_BASE_URL: '' to target the Symfony routes. Do not overwrite public/scripts/config.js when copying the scripts folder, or restore it to:
export const CONFIG = { API_BASE_URL: '' };Run composer to install all Symfony components and Doctrine ORM dependencies:
cd symfony_version
composer installThe database credentials have been automatically loaded from your original setup into symfony_version/.env.
Ensure DATABASE_URL is correct:
DATABASE_URL=postgresql://postgres.nomzklrmetorwthsyvdq:A5clE11bAHYu94E1@aws-1-eu-west-1.pooler.supabase.com:5432/postgres?sslmode=requireStart the PHP built-in server from the symfony_version/ directory:
php -S localhost:8000 -t publicOpen http://localhost:8000/ in your browser!
- Server-Side Rendering (Twig): Main listings (featured and upcoming events on the homepage, clubs directory on the clubs page) are rendered directly on the server.
- Doctrine ORM: Custom raw-SQL queries have been translated into modern PHP Entities (
src/Entity/) and Repositories (src/Repository/). - Unified Routing: Replaced action parameters (
?action=getAll) and individual PHP endpoint scripts with standard Symfony Controllers using Attributes (src/Controller/).