Running Elastic Path Applications
Running Elastic Path Applications
Elastic Path has two webapps Cortex, which is Elastic Path's Hypermedia API and Commerce Manager which is a user interface for managing stores and inventories.
In development, the webapps and servers are used to test the business logic of Elastic Path Commerce and any extensions you have added.
All webapps and application servers are run from the extensions module and thus require all other Elastic Path source code to be built before starting the webapps.
Elastic Path Webapps
The Cortex and Commerce Manager webapps depend on the Elastic Path application servers to start up and access all functionalities. However, they can be started with a minimum set of servers if all functionalities are not required.
Cortex
You must start Cortex and its dependencies to test the development tasks. By default, Cortex starts on port 9080.
Prerequisites
Ensure that the following servers are started:
Elastic Path recommends starting the following server, however this server is optional:
When you start Cortex for the first time, you must do the following:
- In the command line, navigate to the extensions/database module.
- Run the following command:
mvn clean install -Preset-conf
With this command, the system deletes your current local home directory's configuration files, if any, and copies the default Cortex and Ehcache configuration files from the database/ext-data/environments/local/ directory to the ${user.home}/ep/conf/ directory in your file system.. For more information, see Cortex Configuration Files.
Running Cortex
- In the command line, navigate to the extensions/cortex/ext-cortex-webapp module.
- Run the following command:
mvn clean tomcat8:run-war
You can access Cortex Studio at http://localhost:9080/studio/ .
Commerce Manager
By default, Commerce Manager starts on port 8081.
Running Commerce Manager
- In the command line, navigate to the extensions/cm/ext-cm-modules/ext-cm-webapp-runner module.
- Run the following
command:
mvn clean tomcat8:run-war
You can sign in to the Commerce Manager at http://localhost:8081/cm/.
The default user name and password are:
Elastic Path Application Servers
Elastic Path webapps require the following application servers to be started before they are launched. As a general rule for development, only start the application servers needed for the functionality you are testing.
Batch Server
The Batch Sever is used for scheduled Quartz jobs . and is only needed in production environments. For more information, see Elastic Path Quartz Jobs. By default, the Batch Server starts on port 8084.
To run the Batch Server:
- In the command line, navigate to the extensions/batch/ext-batch-webapp module.
- Run the following command:
mvn clean tomcat8:run-war
After starting the Batch server, you can check the status of the Server at http://localhost:8084/batch/status.
Integration Server
The Integration Server is used for any functionality that needs email delivery or messaging on Apache Camel routes. For more information, see Integration Server. By default, the Integration Server starts on port 8083.
To run the Integration Server:
- In the command line, navigate to the extensions/integration/ext-integration-webapp module.
- Run the following command:
mvn clean tomcat8:run-war
After starting the integration server, you can check the status of the Server at http://localhost:8083/integration/status.
JMS Server
The JMS Server is used when making purchases.
To run the JMS Server:
- In the command line, navigate to the extensions/activemq-broker module.
- Run the following command:
mvn clean tomcat8:run-war
After starting the JMS server, you can access the Server at http://localhost:8161/admin.
Search Server
The Search Server is used for all search-related functionalities. For more information, see Search Server. By default, the Search Server starts on port 8082.
To run the Search Server:
- In the command line, navigate to the extensions/search/ext-search-webapp module.
- Run the following command:
mvn clean tomcat8:run-war