tbe / tm_react_render
React app for rendering algolia testmenu results
1.0.6
2021-05-26 19:26 UTC
- dev-master
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-features/feature-LCA-3-related-documents
- dev-releases/release-201907011100
- dev-features/feature-LCDEV-775-algolia-config
- dev-releases/release-201906261408
- dev-hotfixes/hotfix-IOMAIN-80-test-not-showing
- dev-hotfixes/hotfix-cleanup-errors
- dev-releases/release-201905011033
- dev-release-201905011033
- dev-releases/release-201904300844
- dev-features/feature-LCDEV-745-remote-config
- dev-features/feature-LCDEV-741-algolia-insights
This package is auto-updated.
Last update: 2024-10-27 02:54:54 UTC
README
Requirements
- NodeJS (https://nodejs.org/en/)
- NPM (https://www.npmjs.com/get-npm) or Yarn (https://yarnpkg.com/en/)
Note:
The latest version of NodeJS comes prepacked with NPM. Run a npm -v
in the terminal to check.
Getting started
Install Dependencies:
- Change your directory into the root of the "app" folder.
- Run the command
npm install
oryarn install
Scripts:
- Local Development Environment :
npm start
oryarn start
in the app root directory. - Build app :
npm build
oryarn build
in the app root directory.
Local App Settings:
- When developing locally and testing settings, copy the variables needed below into a new file called
.env.development
in the root of the app folder. - Set the values of the copied variables. See below for an example of a
.env.development
file - Required variables are needed in order for the app to run, optional variables can be left out, as they have fallback values.
Environment Variables | Special Notes | |
---|---|---|
REACT_APP_ALGOLIA_APPID | Required | |
REACT_APP_ALGOLIA_APPKEY | Required | |
REACT_APP_ALGOLIA_INDEX | Required | |
REACT_APP_ALGOLIA_PERFORMING_LOCATION | Required | |
REACT_APP_ALGOLIA_FILTER | Optional | This variable is parsed as an array, using ', ' as a delimiter |
REACT_APP_ALGOLIA_TEST_TYPE | Optional | |
REACT_APP_ALGOLIA_SHOW_TN | Optional | This variable is parsed as a boolean, so be sure to set this to TRUE or FALSE |
REACT_APP_ALGOLIA_SEARCH_ATTRIBUTES | Optional | This variable is parsed as an array, using ', ' as a delimiter |
Example - .env.development
--
REACT_APP_ALGOLIA_APPID = '83SKLXLO'
REACT_APP_ALGOLIA_APPKEY = '94odjftneoerer94858'
REACT_APP_ALGOLIA_INDEX = 'test'
REACT_APP_ALGOLIA_PERFORMING_LOCATION = 'location'
REACT_APP_ALGOLIA_FILTER = 'filter1, filter2'