This Event Registration System is built with Symfony. It allows users to register for events through a web interface. This document outlines the steps required to set up the system on your local development environment.
Before proceeding with the setup, ensure you have the following installed on your machine:
- Docker
- Docker Compose
First, clone the repository to your local machine. Open a terminal and run the following command:
git clone [email protected]:gediminasnn/symfony.twig.event-registration-system.git
(Optional) Replace [email protected]:gediminasnn/symfony.twig.event-registration-system.git
with the URL of repository.
Change directory to the application root:
cd symfony.twig.event-registration-system
(Optional) Replace symfony.twig.event-registration-system
with the path where you cloned the repository.
Use Docker Compose to start the Docker containers. Run the following command in your terminal:
docker-compose up
This command builds and starts all containers needed for the application. The first time you run this, it might take a few minutes to download and build everything.
After successfully running the migrations, it's time to populate the database with some initial data, run the database fixtures. Ensure your Docker containers are up and running. In the terminal, execute the following command:
docker-compose exec php bin/console doctrine:fixtures:load
This command will execute the fixtures defined in your application, populating the database with sample or default data.
To set up the test database, execute the following commands:
docker-compose exec php bin/console doctrine:database:create --env=test
and
docker-compose exec php bin/console doctrine:migrations:migrate --env=test
This command creates the necessary database for running tests.
Ensure that your Docker containers are still up and running. Open a new terminal window or tab and execute the following command:
docker-compose exec php bin/phpunit
This command will use phpunit's built-in test runner to execute your application's test suite. It will run all the tests located in the tests directory of your application.
By completing this step, you will have fully set up your Event Registration System Application on your local development environment, ensuring it is ready for further development, testing, or deployment.
This project is licensed under the MIT License