Skip to content

gediminasnn/symfony.twig.event-registration-system

Repository files navigation

Event Registration System Application

list

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.

Prerequisites

Before proceeding with the setup, ensure you have the following installed on your machine:

  • Docker
  • Docker Compose

Setup

1. Clone the Repository

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.

2. Navigate to the Application Directory

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.

3. Start the Docker Containers

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.

4. Run Database Seeds

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.

5. (Optional) Create Test Database

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.

6. (Optional) Run 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.

Pages documentation

Events List

list

Event Preview

preview

Event Registration

register

Event Registration Success

success

Event Registration Error

error

Entity Relationship Diagram

erdiagram

License

This project is licensed under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published