Build instructions and informations
Configuration
To run the application you need to provide a .env
file to configure all required settings. Here is a list of all environnement variables:
# MESSAGEBIRD CONFIG
MESSAGEBIRD_LIVE_ACCESS_KEY={ messagebird accesskey }
# ONEX CONFIG
ONEX_USER_ID={ onexUserId }
ONEX_PASSWORD={ onexUserPassowrd }
ONEX_BASIC_AUTH_USERNAME={ basicAuthUser }
ONEX_BASIC_AUTH_PASSWORD={ basicAuthPasswword }
ONEX_AUTH_URL={ oneXAuthUrl }
ONEX_CART_URL={ oneXCartServiceUrl }
ONEX_ORDER_URL={ oneXOrderServiceUrl }
# GOOGLE CONFIG
GOOGLE_APPLICATION_CREDENTIALS={ path to the service-account.json }
GOOGLE_DIALOGFLOW_PROJECT_ID={ dialogflowProjectId }
# AUTH0 CONFIG
AUTH0_CLIENT_ID={ auth0ClientId }
AUTH0_CLIENT_SECRET={ auth0ClientSecret }
AUTH0_AUDIENCE={ auth0Audience }
AUTH0_DEFAULT_MAIL={ deaultMail }
AUTH0_BASE_URL={ auth0BaseUrl }
AUTH0_CONNECTION={ auth0Connection }
Installation
Clone the bridge repository and run the following commands:
# install dependencies
npm install
# for development
npm run live
# for production
npm run start