A simple, single-page React application to showcase the structure of queries to the SDX.
- Node.js (available at https://nodejs.org/)
- Yarn
- Chrome or Firefox
- Navigate to https://sdx.trihydro.com/
- Sign in with your credentials
- If you don't already have an account, use the Register button to sign up. You'll need to confirm your email before proceeding.
- Click the dropdown arrow by your name on the right-side of the menu bar
- Select API Access
- Use the Generate New API Key options to Generate an API Key
- Record your new API Key
- Clone this repository
- Install dependencies using
yarn install
- Create a
.env
file in the project's root directory (at the same level as this README)- If on Linux or MacOS, this can be accomplished in the terminal by running
touch .env
- If on Linux or MacOS, this can be accomplished in the terminal by running
- Open the
.env
file. Add the following contents. Replace<api-key>
with your API Key. Do not include any quotes or double quotes around the API Key.
REACT_APP_API_KEY=<api-key>
- Start the application using
yarn start
After starting, the application should automatically load in your browser. If not, navigate to http://localhost:3000/. Note that the SDX application is set up to accept traffic from this application on port 3000 only. Other ports will fail CORS.
Use the Query text area to modify query parameters. After a query is ran, results are displayed in the Results area.