This guide will walk you through the steps to set up and run this Symfony application locally.
Before you begin, make sure you have the following software installed on your local machine:
- PHP (PHP 8.1 or higher recommended)
- Composer - A PHP dependency manager.
- Symfony CLI - The Symfony command-line tool.
- Redis - An in-memory data store.
Follow these steps to set up and run your Symfony application with Redis caching:
- Clone the Repository:
git clone https://github.com/vitaemendum/holiday-symf.git
cd holiday-symf/app
- Install Dependencies:
-
Use Composer to install the project's PHP dependencies:
composer install
- Redis Configuration:
- By default, Symfony uses Redis for caching. Ensure Redis is running on your machine. Edit your .env file with
REDIS_URL
- Run the Symfony Application:
-
Start the Symfony development server
symfony server:start
-
Your Symfony application should now be accessible at
http://localhost:8000
in your web browser. -
Open a web browser and go to
http://localhost:8000
to access your Symfony application.