You are browsing upcoming documentation for version 6.0 of OroCommerce, OroCRM, and OroPlatform, scheduled for release in 2024. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
Custom Oro Application¶
No two businesses are alike. This motto is part of Oro’s product philosophy, which is why flexibility is one of the fundamental principles driving architecture. Depending on what you are planning to build, you can create your custom application with minimum functions starting with the OroCommerce application as a baseline.
Application Repository and Installation¶
Once code repository is ready, please follow installation instructions.
A newly created application repository should be used instead of the https://github.com/oroinc/orocommerce-application.git
You can use development mode to work on customizations when your application is up and running. To warm up the application cache in development mode, please run:
php bin/console cache:clear --env=dev
To access the application in development mode, add index_dev.php to the base URL
Application Custom Code¶
In the root folder of your application, there is an src folder. Use it as a working directory for your custom project and put your custom code there. Like in Symfony applications, all custom code in the Oro application is organized in bundles - modules that group application functionality (see Symfony Bundle System for best practice of module structure and design).
Please note that the Oro application has several differences compared to Symfony Standard Edition.
Typically, to create a custom application you may follow the typical steps:
Oro applications are open source and can be deployed to on-premise environments. Deployment methods can vary depending on organization requirements and infrastructure. You can design your custom deployment process but make sure you follow the recommendations below:
Follow the advice outlined in the Symfony Application Deployment documentation.
Lock all dependencies with composer.lock before taking the code to production.
Warm up the application cache in production mode.
Disable access to index_dev.php.
Configure crontab and run web socket server.
Oro applications are scalable.