This is the sixth project in my Symfony developer journey. It's about making a community snowboard tricks site.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- PHP 8.0.1
- Symfony 5.2
- Symfony CLI
- Composer
Developed and tested with MariaDB, in this case the following PHP extensions are necessary:
- pdo_mysql extension
- mysqli extension
A step by step series of examples that tell you how to get a development env running
-
Clone the project in your workspace of your PHP environment.
-
Install the necessary libraries via composer
php composer install
-
Copy the .env file to .env.local and change the settings according to your needs. The parameters present in .env.local overwrite those found in .env
-
Create the database
php bin/console doctrine:database:create
- Make a migration and migrate it
php bin/console make:migration
php bin/console doctrine:migrations:migrate
- Load fixtures
php bin/console doctrine:fixtures:load
- Run the symfony web server
symfony server:ca:install
symfony server:start
- It's ready!
If you want to use a ready container for this project you can build the docker-compose inside the "build" directory. Previously, you can change the settings according to your needs. If you are using a MySQL / MariaDB database, make sure they are on the same docker network. Here it is the "my-network" network, you can change it in the docker-compose file.
To build it:
/build/docker-compose up -d
All accounts have the same password: Administrateur8!
The project is hosted online. It works as a demo and the content is refresh everyday. Fixtures are reloaded and uploaded files are erased. So you can try it!