> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/commercetools-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/commercetools-1/use-the-commercetools-merchant-center-custom-application/merchant-center-custom-application-user-guide/use-the-demo-store-custom-application.md). Agents can also search and read this documentation through its [MCP server](https://docs.digitalriver.com/commercetools-1/~gitbook/mcp).

# Use the demo store custom application

Learn how to use the demo store.

The Digital River Demo Store custom application contains a React application that provides an example of how you might use the Digital River connector to integrate Digital River into a commercetools store.&#x20;

The application is intended for demonstration and reference only and is NOT production ready.

Contact your Digital River representative to obtain the demo store application code. If you do not have a Digital River representative contact <commercetools-Integration@digitalriver.com>

## Setup the demo store

Use the following steps to set up your demo store:

* Follow the steps in[ Install and configure the commercetools connector](https://docs.digitalriver.com/commercetools-1/install-and-configure-the-digital-river-commercetools-integration.md) to set up your store.
* Populate your project with the [commercetools Sunrise data](https://github.com/commercetools/commercetools-sunrise-data). Follow the [provided README](https://github.com/commercetools/commercetools-sunrise-data#readme) to understand how to create a project with Sunrise.&#x20;
* Create an `.ENV` file with the following environmental variable values:

| Property                              | Value                                | Notes                                                                                                                                                                                                                               |
| ------------------------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| REACT\_APP\_CT\_PROJECT\_KEY          | Your commercetools project key       |                                                                                                                                                                                                                                     |
| REACT\_APP\_CT\_API\_URL.             | Your commercetools API URL           |                                                                                                                                                                                                                                     |
| REACT\_APP\_CT\_AUTH\_URL.            | Your commercetools auth URL          |                                                                                                                                                                                                                                     |
| REACT\_APP\_CT\_CLIENT\_ID            | Your FE commercetools API key id     | See commercetools-Setup for required scopes                                                                                                                                                                                         |
| REACT\_APP\_CT\_CLIENT\_SECRET        | Your FE commercetools API key secret | See commercetools-Setup for required scopes                                                                                                                                                                                         |
| REACT\_APP\_CT\_ADMIN\_CLIENT\_ID     | API key id for admin functions       | Only required if you want to use the order admin functions. These are for demo purposes only as they require manage\_order and manage\_payment scopes. You should **never** ship a FE application with a key that has these scopes. |
| REACT\_APP\_CT\_ADMIN\_CLIENT\_SECRET | API key secret for admin functions   | Only required if you want to use the order admin functions. These are for demo purposes only as they require manage\_order and manage\_payment scopes. You should **never** ship a FE application with a key that has these scopes. |

Run `npm install` to install dependencies.

## Run and use the demo store application

To start the application, type the following at the `npm` prompt:

`npm start`

You may also use Yarn if you prefer.

To use the application, go to <http://localhost:3000>.
