Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.45 KB

README.md

File metadata and controls

52 lines (35 loc) · 2.45 KB

commercetools logo Custom Application Starter

This is the starter template to develop Custom Applications for the Merchant Center.

Installation

Install the template using the npx command. Replace <folder_name> with the name of the folder where the template should be installed into.

$ npx @commercetools-frontend/create-mc-app <folder_name> --template starter

You can also install the @commercetools-frontend/create-mc-app CLI globally:

# Using yarn
$ yarn global add @commercetools-frontend/create-mc-app
$ create-mc-app <folder_name> --template starter

# Using npm
$ npm install --global @commercetools-frontend/create-mc-app
$ create-mc-app <folder_name> --template starter

Configuring the Custom Application

Once the template has been installed, you need to check and adjust the custom-application-config.json file accordingly. Reference: Custom Application Config.

You can additionally configure editor support to provide hints and code completion.

The template provides the bare minimum configuration setup, so you might not need to change anything specific for now.

Developing the Custom Application

To develop the Custom Application in development mode, use the start command in package.json.

Important commands:

Other useful commands:

  • compile-html:local and start:prod:local: use these commands to test the application locally in production mode.
  • versions:*: use these commands to update dependency versions in bulk related to Custom Applications.