This demo App is part of Trusted Shop´s SDK for building plugins based on our new plattform and architecture. You can find our detailed documentation publicly available here. Please follow these instructions to build your own plugin to connect eTrusted products with a shopsoftwaresystem.
Node must be installed on the computer to run the demo application https://nodejs.org/en/
- Clone this repository:
git clone git@github.com:trustedshops-public/connect-app-demo.git
- Install npm dependencies:
cd connect-app-demo
npm install
or
yarn install
- then
yarn run dev
or
npm run dev
After you have successfully started the app in your browser you will be presented with a pre-configured setup and a login screen.
To authenticate and get the whole experience,you need Client ID and Client Secret of a Trusted Shops members account. If you haven't any yet, you can get developer credentials at request for testing. Please write to our support team (productintegration@trustedshops.com) to request development credentials.
You may change the pre-configuration to your needs. To do so you want to edit the configuration stated inside baseLayerData in file src/database-container/data-config.ts:
locale: 'en-GB',
infoSystem: {
nameOfSystem: 'Demo-app',
versionNumberOfSystem: '1.0.0',
versionNumberOfPlugin: '1.0.0',
allowsEstimatedDeliveryDate: true,
allowsEventsByOrderStatus: true,
allowsSendReviewInvitesForPreviousOrders: true,
allowsSendReviewInvitesForProduct: true,
allowsEditIntegrationCode: true,
allowsSupportWidgets: true,
}
Further readings: https://developers.etrusted.com/docs/general-concepts
For the demo two sales channels are pre-configured. These represent the frontends of a shop. You can change them by editing
salesChannels: [
{
id: 'shop-sales-channel-1',
name: 'Sales Channel EN',
url: 'www.example.com/en',
locale: 'en_GB',
},
{
id: 'shop-sales-channel-2',
name: 'Sales Channel DE',
url: 'www.example.com/de',
locale: 'de_DE',
},
]
inside configuration file mentioned above. Further readings: https://developers.etrusted.com/docs/shop-data-and-channel-setup