@darrion.kuhn
To run a Symfony project on localhost, follow these steps:
- Install Symfony's dependencies and tools:
Install PHP and Composer (dependency manager for PHP)
Run composer install to install the dependencies listed in the project's composer.json file.
- Configure the Database:
Open the .env file and set the database connection parameters (e.g., database name, username, and password).
- Create the Database:
Run php bin/console doctrine:database:create to create the configured database.
- Create Database Schema:
Run php bin/console doctrine:schema:create to create the required database tables.
- Start the Local Server:
Run symfony serve to start the local web server, or use php -S localhost:8000 -t public if you don't have the Symfony CLI installed.
- Access the Application:
Open your web browser and navigate to http://localhost:8000 (or the specified port) to access your Symfony application.
- Optional: Clear the Cache:
If you make changes to the templates or configurations, run php bin/console cache:clear to clear the application cache.
Remember to keep your dependencies updated and refer to the Symfony documentation for specific commands and additional configurations for your project.