Short description or introduction to the project.
Follow these steps to install and set up the project locally on your machine.
- PHP (version 8.1.17)
- Composer (version 2.3.7)
- Database (e.g., MySQL, PostgreSQL)
- Open your terminal or command prompt.
- Navigate to the directory where you want to install the project.
- Run the following command to clone the repository:
git clone https://github.com/devilica/race.git- Navigate to the project directory:
cd repository- Run the following command to install project dependencies using Composer:
composer install- Copy the
.envfile to create a local environment file:
cp .env .env.local- Open the
.env.localfile and update the configuration parameters according to your local environment (e.g., database credentials).
- Run the following command to generate the encryption keys required for security:
php bin/console secrets:generate-keys- Create the database.
- Update the database connection details in the
.env.local and .envfile. - Run the following commands to set up the database and run any pending migrations:
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate- Run the following command to start the Symfony development server:
symfony serveAccess the project in your browser by visiting the provided URL (usually http://localhost:8000).
There is csv file RaceResults.csv that you can import as an example.