- Docker and Docker Compose
- We recommend using Symfony CLI on your local environment. Otherwise you can adapt the given commands to be executed inside your PHP-FPM container.
- If you want to do this, you will need to have PHP 8.4 installed in your host system with the following extensions :
- curl
- redis
- amqp
- xml
- dom
- simplexml
- zip
- intl
- pdo-mysql
First, clone the repository on your local environment :
git clone git@github.com:Kern046/asylamba-game.git kalaxiaMove to the cloned repository and then move to the adequate branch (don't hesitate to ask which one it is currently since we are not using master for now)
cd kalaxia
git checkout {branch} # Insert the current main branch, which is currently changing regularlyLaunch the Docker containers :
docker compose up -dThen, install the project dependencies and setup the database :
# Install the PHP dependencies
symfony composer install
# Install the frontend dependencies
symfony console importmap:install
# Setup the database schema using Doctrine ORM
symfony console doctrine:schema:update --force --complete
# Initialize a new game data in Kalaxia (players, map systems, planets...)
# If you launch this on
symfony console app:hephaistos:populate-databaseIf you prefer to launch the commands inside your Docker container, just type
docker exec -it kalaxia_app shand then replacesymfony consolewithphp bin/consolein the given commands.
Currently investigating a connection issue between Symfony CLI running on the host and the database.
If you are working on the UI, launch Tailwind watcher :
symfony console tailwind:build --watchmkdir config/doctrine/hephaistosIncrease your MEMORY_LIMIT inside php.ini if it is currently 256M and then reboot your Symfony server and Docker. Then launch :
symfony console doctrine:schema:drop --force
symfony console doctrine:schema:update --force --complete
symfony console app:hephaistos:populate-databaseThe commmand
populate-databasemay take time.

