You can open the repository folder on your local machine to check the setup.

A new folder named node_modules is created. You should never modify anything in the node_modules folder. This folder is not part of the repository. All the third-party dependencies get installed in this folder. Whenever you run an npm command the dependencies are overridden in this folder.

Configuration Parameters

During the npm install phase, a configuration file named environment.ts is automatically created. This is a runtime configuration for the application. The environment.ts file contains runtime specific variables that help the application to operate. You must set it up with the following parameters:

Name

Type

Required

Default Value

Description

production

Boolean

Yes

-

Specify the environment where you want the application to run.

defaultImageSrc

String

Yes

-

Specify the URL of the default image to use when no image is found.

defaultCountry

String

No

US

The default country code is "US".

defaultLanguage

String

No

en-US

The default locale is "en-US".

defaultCurrency

String

No

USD

The default currency to use for guest users. Defaults to "USD".

productIdentifier

String

No

Id

The API name of the field on the product to use as the unique identifier in the application.

proxy

String

No

-

The login proxy to use to bypass CORS restrictions on login.

storefrontId

String

Yes

Null

Specify the ID of the storefront record.

hashRoutingBooleanNoFalseTo support the hash URL path, set it to true.
endpointStringYes-Specify the Conga Platform instance where your tenant is onboarded. For example: https://test.congacloud.com
authenticationEndpointString


cartRetryLimit?numberNo5Specify how many times the default cart will be repriced if pricing does not happen on the initial run.
captchaSiteKey?StringNo-reCAPTCHA keys represent how reCAPTCHA Enterprise is configured for a website. For more information on how to create keys, see Create reCAPTCHA keys.
translationModuleStringNoNull

Specify the translation module name.

  • If you do not pass the module name, the application by default considers the local translation file. 
  • If you want to use the translation defined at the Conga Platform level, then pass the module name created on the Conga Platform.

For more information on how to create module and translation and about local translation files, see Setting Up Multi-Language.

If you provide the module name created on the Conga Platform but there are no translation details available, then the system will display an application error.

clientIdStringYesNullThis is used for OAuth handshake.
authorityStringYesNullTo redirect the UI app to the login screen for authentication and authorization.


Importing the app module into the root module

CommerceModule.forRoot - In the forRoot method of the CommerceModule declare the storefront that you want to use. For example, CommerceModule.forRoot('Tier 1')

This defines the Storefront for your application.