Use Docker to set up this project. You don't need to have a PHP environment with composer installed.
- Git
- Your user must be allowed to run docker commands.
- You must have docker compose installed.
- Your user must be allowed to change file permissions.
-
Clone this project :
git clone https://github.com/ramyakant-dev/pimcore-task.git
-
Go to your project folder
cd project-folder/
-
Part of the this project is a docker compose file
- Run
sed -i "s|#user: '1000:1000'|user: '$(id -u):$(id -g)'|g" docker-compose.yaml
to set the correct user id and group id. - Start the needed services with
docker compose up -d
- Run
-
Run composer install
sudo docker compose exec php composer install
-
Install pimcore and initialize the DB
docker compose exec php vendor/bin/pimcore-install --mysql-host-socket=db --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore
- When asked for admin user and password: Choose freely
- Follow the process. This project doesn't need any extra bundles to be installed.
- If you select to install the SimpleBackendSearchBundle please make sure to add the
pimcore_search_backend_message
to your.docker/supervisord.conf
file inside value for 'command' likepimcore_maintenance
already is.
-
DONE - You can now visit your pimcore instance:
- The frontend: http://localhost
- The admin interface, using the credentials you have chosen above: http://localhost/admin
-
- During Installation symfony/phpunit-bridge and symfony/browser-kit is installed automatically.
- docker-compose.yaml contains necessary services, which can be initialized when testing.
- Run
sudo docker compose --profile test up -d
from you project directory to start test-db and test-php services. - phpunit.xml.dist contains all the necessary settings for testing.
- Tests are located in 'bundles/Ramyakant/ProductManagementBundle/tests'.
- Run the tests with
sudo docker compose exec test-php vendor/bin/simple-phpunit
.
-
Clone this project :
git clone https://github.com/ramyakant-dev/pimcore-task.git
-
Go to your project folder
cd project-folder/
-
Run composer install
composer install
-
Install Pimcore & initialize DB
./vendor/bin/pimcore-install
-
Setup Apache & Virtual Host
- Point your virtual host to
my-project/public
- [Only for Apache] Create
my-project/public/.htaccess
according to https://pimcore.com/docs/platform/Pimcore/Installation_and_Upgrade/System_Setup_and_Hosting Apache_Configuration/ - Open https://your-host/admin in your browser
- Done! 😎
- Point your virtual host to
By default, Pimcore Platform Version is added as a dependency which ensures installation of compatible and in combination with each other tested versions of additional Pimcore modules. More information about the Platform Version can be found in the Platform Version docs.
It might be necessary to update a specific Pimcore module to a version that is not included in the Platform Version.
In that case, you need to remove the platform-version
dependency from your composer.json
and update the module to
the desired version.
Be aware that this might lead to a theoretically compatible but untested combination of Pimcore modules.