# Use the demo store custom application

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](/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>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
